|
|
|
@ -365,10 +365,14 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
|
|
|
|
|
baseMapper.insert(aftersalesWorkOrder); |
|
|
|
|
} else { |
|
|
|
|
//修改
|
|
|
|
|
if (ObjectUtil.isNotNull(aftersalesWorkOrder.getUnPpackageEntityList())) { |
|
|
|
|
// if (ObjectUtil.isNotNull(aftersalesWorkOrder.getUnPpackageEntityList())) {
|
|
|
|
|
//删除修改包件
|
|
|
|
|
aftersalesAbnormalPackageService.deleteLogic(aftersalesWorkOrder.getUnPpackageEntityList()); |
|
|
|
|
} |
|
|
|
|
// aftersalesAbnormalPackageService.deleteLogic(aftersalesWorkOrder.getUnPpackageEntityList());
|
|
|
|
|
// }
|
|
|
|
|
LambdaUpdateWrapper<AftersalesAbnormalPackageEntity> updateWrapper = Wrappers.<AftersalesAbnormalPackageEntity>lambdaUpdate() |
|
|
|
|
.set(AftersalesAbnormalPackageEntity::getIsDeleted, 1) |
|
|
|
|
.eq(AftersalesAbnormalPackageEntity::getWorkOrderId, aftersalesWorkOrder.getId()); |
|
|
|
|
aftersalesAbnormalPackageService.update(updateWrapper); |
|
|
|
|
if (ObjectUtil.isNotNull(aftersalesWorkOrder.getUnProcessorEntityList())) { |
|
|
|
|
//责任方 处理方
|
|
|
|
|
// List<AftersalesProcessorEntity> list = new ArrayList<>();
|
|
|
|
@ -397,26 +401,42 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo
|
|
|
|
|
// aftersalesProcessorService.saveOrUpdateBatch(list);
|
|
|
|
|
// }
|
|
|
|
|
} |
|
|
|
|
if (ObjectUtil.isNotNull(aftersalesWorkOrder.getUnDecreaseImageEntityList()) && !aftersalesWorkOrder.getUnDecreaseImageEntityList().isEmpty()) { |
|
|
|
|
//图片修改
|
|
|
|
|
aftersalesDecreaseImageService.deleteLogic(aftersalesWorkOrder.getUnDecreaseImageEntityList()); |
|
|
|
|
} |
|
|
|
|
// if (ObjectUtil.isNotNull(aftersalesWorkOrder.getUnDecreaseImageEntityList()) && !aftersalesWorkOrder.getUnDecreaseImageEntityList().isEmpty()) {
|
|
|
|
|
// //图片修改
|
|
|
|
|
// aftersalesDecreaseImageService.deleteLogic(aftersalesWorkOrder.getUnDecreaseImageEntityList());
|
|
|
|
|
// }
|
|
|
|
|
LambdaUpdateWrapper<AftersalesDecreaseImageEntity> imageEntityLambdaUpdateWrapper = Wrappers.<AftersalesDecreaseImageEntity>lambdaUpdate() |
|
|
|
|
.set(AftersalesDecreaseImageEntity::getIsDeleted, 1) |
|
|
|
|
.eq(AftersalesDecreaseImageEntity::getWorkOrderId, aftersalesWorkOrder.getId()); |
|
|
|
|
aftersalesDecreaseImageService.update(imageEntityLambdaUpdateWrapper); |
|
|
|
|
//修改调查经过
|
|
|
|
|
if (ObjectUtils.isNotNull(aftersalesWorkOrder.getSurveyRecordDTO())) { |
|
|
|
|
aftersalesWorkOrder.setInvestigationProcess(aftersalesWorkOrder.getSurveyRecordDTO().getContent()); |
|
|
|
|
} |
|
|
|
|
//修改责任方
|
|
|
|
|
if (ObjectUtils.isNotNull(aftersalesWorkOrder.getUnPersonResponsibleDTO())) { |
|
|
|
|
aftersalesPersonResponsibleService.deleteLogic(aftersalesWorkOrder.getUnPersonResponsibleDTO()); |
|
|
|
|
} |
|
|
|
|
// if (ObjectUtils.isNotNull(aftersalesWorkOrder.getUnPersonResponsibleDTO())) {
|
|
|
|
|
// aftersalesPersonResponsibleService.deleteLogic(aftersalesWorkOrder.getUnPersonResponsibleDTO());
|
|
|
|
|
// }
|
|
|
|
|
LambdaUpdateWrapper<AftersalesPersonResponsibleEntity> personResponsibleEntityLambdaUpdateWrapper = Wrappers.<AftersalesPersonResponsibleEntity>lambdaUpdate() |
|
|
|
|
.set(AftersalesPersonResponsibleEntity::getIsDeleted, 1) |
|
|
|
|
.eq(AftersalesPersonResponsibleEntity::getWordOrderId, aftersalesWorkOrder.getId()); |
|
|
|
|
aftersalesPersonResponsibleService.update(personResponsibleEntityLambdaUpdateWrapper); |
|
|
|
|
//修改赔款方
|
|
|
|
|
if (ObjectUtils.isNotNull(aftersalesWorkOrder.getUnCompletionRecordEntities())) { |
|
|
|
|
completionRecordService.deleteLogic(aftersalesWorkOrder.getUnCompletionRecordEntities()); |
|
|
|
|
} |
|
|
|
|
// if (ObjectUtils.isNotNull(aftersalesWorkOrder.getUnCompletionRecordEntities())) {
|
|
|
|
|
// completionRecordService.deleteLogic(aftersalesWorkOrder.getUnCompletionRecordEntities());
|
|
|
|
|
// }
|
|
|
|
|
LambdaUpdateWrapper<AftersalesCompletionRecordEntity> completionRecordEntityLambdaUpdateWrapper = Wrappers.<AftersalesCompletionRecordEntity>lambdaUpdate() |
|
|
|
|
.set(AftersalesCompletionRecordEntity::getIsDeleted, 1) |
|
|
|
|
.eq(AftersalesCompletionRecordEntity::getWorkOrderId, aftersalesWorkOrder.getId()); |
|
|
|
|
completionRecordService.update(completionRecordEntityLambdaUpdateWrapper); |
|
|
|
|
//修改收款方
|
|
|
|
|
if (ObjectUtils.isNotNull(aftersalesWorkOrder.getUnCompletionRecipientEntities())) { |
|
|
|
|
completionRecipientService.deleteLogic(aftersalesWorkOrder.getUnCompletionRecipientEntities()); |
|
|
|
|
} |
|
|
|
|
// if (ObjectUtils.isNotNull(aftersalesWorkOrder.getUnCompletionRecipientEntities())) {
|
|
|
|
|
// completionRecipientService.deleteLogic(aftersalesWorkOrder.getUnCompletionRecipientEntities());
|
|
|
|
|
// }
|
|
|
|
|
LambdaUpdateWrapper<AftersalesCompletionRecipientEntity> completionRecipientEntityLambdaUpdateWrapper = Wrappers.<AftersalesCompletionRecipientEntity>lambdaUpdate() |
|
|
|
|
.set(AftersalesCompletionRecipientEntity::getIsDeleted, 1) |
|
|
|
|
.eq(AftersalesCompletionRecipientEntity::getWorkOrderId, aftersalesWorkOrder.getId()); |
|
|
|
|
completionRecipientService.update(completionRecipientEntityLambdaUpdateWrapper); |
|
|
|
|
//
|
|
|
|
|
baseMapper.updateById(aftersalesWorkOrder); |
|
|
|
|
} |
|
|
|
|