diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesWorkOrderServiceImpl.java b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesWorkOrderServiceImpl.java index 337c6f2fc..11d6c182f 100644 --- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesWorkOrderServiceImpl.java +++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/service/impl/AftersalesWorkOrderServiceImpl.java @@ -373,34 +373,38 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl list = new ArrayList<>(); - aftersalesWorkOrder.getUnProcessorEntityList().forEach(i -> { - AftersalesProcessorEntity processorEntity = new AftersalesProcessorEntity(); - processorEntity.setId(i); - processorEntity.setConditions("3"); - if (ObjectUtils.isNotNull(aftersalesWorkOrder.getProcessorEntityList())) { - aftersalesWorkOrder.getProcessorEntityList().stream().collect(Collectors.groupingBy(AftersalesProcessorEntity::getTypesOf)) - .forEach((k, v) -> { - if ("1".equals(k)) { - //责任人 - String collect = v.stream().map(AftersalesProcessorEntity::getBusinessName).collect(Collectors.joining(",")); - aftersalesWorkOrder.setResponsiblePerson(collect); - } else { - String collect = v.stream().map(AftersalesProcessorEntity::getBusinessName).collect(Collectors.joining(",")); - aftersalesWorkOrder.setProcessedBy(collect); - } - - }); - } - aftersalesProcessorService.updateById(processorEntity); -// list.add(processorEntity); - }); -// if(!list.isEmpty()){ -// aftersalesProcessorService.saveOrUpdateBatch(list); -// } - } +// if (ObjectUtil.isNotNull(aftersalesWorkOrder.getUnProcessorEntityList())) { +// //责任方 处理方 +//// List list = new ArrayList<>(); +// aftersalesWorkOrder.getUnProcessorEntityList().forEach(i -> { +// AftersalesProcessorEntity processorEntity = new AftersalesProcessorEntity(); +// processorEntity.setId(i); +// processorEntity.setConditions("3"); +// if (ObjectUtils.isNotNull(aftersalesWorkOrder.getProcessorEntityList())) { +// aftersalesWorkOrder.getProcessorEntityList().stream().collect(Collectors.groupingBy(AftersalesProcessorEntity::getTypesOf)) +// .forEach((k, v) -> { +// if ("1".equals(k)) { +// //责任人 +// String collect = v.stream().map(AftersalesProcessorEntity::getBusinessName).collect(Collectors.joining(",")); +// aftersalesWorkOrder.setResponsiblePerson(collect); +// } else { +// String collect = v.stream().map(AftersalesProcessorEntity::getBusinessName).collect(Collectors.joining(",")); +// aftersalesWorkOrder.setProcessedBy(collect); +// } +// +// }); +// } +// aftersalesProcessorService.updateById(processorEntity); +//// list.add(processorEntity); +// }); +//// if(!list.isEmpty()){ +//// aftersalesProcessorService.saveOrUpdateBatch(list); +//// } +// } + LambdaUpdateWrapper processorEntityLambdaUpdateWrapper = Wrappers.lambdaUpdate() + .set(AftersalesProcessorEntity::getIsDeleted, 1) + .eq(AftersalesProcessorEntity::getWorkOrderId, aftersalesWorkOrder.getId()); + aftersalesProcessorService.update(processorEntityLambdaUpdateWrapper); // if (ObjectUtil.isNotNull(aftersalesWorkOrder.getUnDecreaseImageEntityList()) && !aftersalesWorkOrder.getUnDecreaseImageEntityList().isEmpty()) { // //图片修改 // aftersalesDecreaseImageService.deleteLogic(aftersalesWorkOrder.getUnDecreaseImageEntityList());