|
|
|
@ -383,6 +383,9 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
|
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
aftersalesWorkOrder.forEach(v ->{ |
|
|
|
|
if(ObjectUtils.isNull(v.getId())){ |
|
|
|
|
throw new ServiceException("异常工单ID不能为空!"); |
|
|
|
|
} |
|
|
|
|
if(ObjectUtils.isNull(v.getCompletionRecordEntities()) ){ |
|
|
|
|
throw new ServiceException("赔款方数据不能为空"); |
|
|
|
|
} |
|
|
|
@ -392,6 +395,13 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
|
|
|
|
|
if(ObjectUtils.isNotNull(v.getCompletionRecipientEntities())){ |
|
|
|
|
completionRecipientService.saveBatch(v.getCompletionRecipientEntities()); |
|
|
|
|
} |
|
|
|
|
//修改工单异常完结状态
|
|
|
|
|
AftersalesWorkOrderEntity workOrderEntity = new AftersalesWorkOrderEntity(); |
|
|
|
|
workOrderEntity.setId(v.getId()); |
|
|
|
|
workOrderEntity.setWorkOrderStatus(WorkOrderStatusConstant.yiwanjei.getValue()); |
|
|
|
|
workOrderEntity.setOverTime(new Date()); |
|
|
|
|
baseMapper.updateById(workOrderEntity); |
|
|
|
|
|
|
|
|
|
//添加跟踪记录
|
|
|
|
|
AftersaleSurveyRecordEntity surveyRecordEntity = new AftersaleSurveyRecordEntity(); |
|
|
|
|
AftersaleSurveyRecordDTO aftersaleSurveyRecordDTO = changName(v, user); |
|
|
|
@ -990,7 +1000,8 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
|
|
|
|
|
//修改工单状态
|
|
|
|
|
AftersalesWorkOrderEntity aftersalesWorkOrderEntity = new AftersalesWorkOrderEntity(); |
|
|
|
|
aftersalesWorkOrderEntity.setId(l); |
|
|
|
|
aftersalesWorkOrderEntity.setWorkOrderStatus(WorkOrderStatusConstant.yiwanjei.getValue()); |
|
|
|
|
aftersalesWorkOrderEntity.setWorkOrderStatus(WorkOrderStatusConstant.yiwanjei.getValue());\ |
|
|
|
|
aftersalesWorkOrderEntity.setOverTime(new Date()); |
|
|
|
|
baseMapper.updateById(aftersalesWorkOrderEntity); |
|
|
|
|
//修改
|
|
|
|
|
UpdateWrapper<AftersalesArbitrationOrderEntity> lambdaUpdateWrapper = new UpdateWrapper<>(); |
|
|
|
@ -999,7 +1010,6 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
|
|
|
|
|
lambdaUpdateWrapper.set("types_of",WorkOrderTypesOfStatusConstant.jeishu.getValue()); |
|
|
|
|
aftersalesArbitrationOrderService.update(lambdaUpdateWrapper); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//添加跟踪记录
|
|
|
|
|
AftersaleSurveyRecordEntity surveyRecordEntity = new AftersaleSurveyRecordEntity(); |
|
|
|
|
AftersaleSurveyRecordDTO aftersaleSurveyRecordDTO = changName(aftersalesWorkOrder, user); |
|
|
|
@ -1009,7 +1019,6 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
|
|
|
|
|
surveyRecordEntity.setWorkOrderId(l); |
|
|
|
|
surveyRecordEntity.setProcessingResults("客服仲裁完结"); |
|
|
|
|
aftersaleSurveyRecordService.save(surveyRecordEntity); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
@ -1280,7 +1289,11 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
|
|
|
|
|
@Override |
|
|
|
|
public void updateModifyClaimStatus() { |
|
|
|
|
List<AftersalesSettlementEntity> settlementEntityList = baseMapper.getWholeListSettlement(); |
|
|
|
|
if(!settlementEntityList.isEmpty()){ |
|
|
|
|
settlementEntityList.forEach(i ->{ |
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|