|
|
@ -373,34 +373,38 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl<AftersalesWo |
|
|
|
.set(AftersalesAbnormalPackageEntity::getIsDeleted, 1) |
|
|
|
.set(AftersalesAbnormalPackageEntity::getIsDeleted, 1) |
|
|
|
.eq(AftersalesAbnormalPackageEntity::getWorkOrderId, aftersalesWorkOrder.getId()); |
|
|
|
.eq(AftersalesAbnormalPackageEntity::getWorkOrderId, aftersalesWorkOrder.getId()); |
|
|
|
aftersalesAbnormalPackageService.update(updateWrapper); |
|
|
|
aftersalesAbnormalPackageService.update(updateWrapper); |
|
|
|
if (ObjectUtil.isNotNull(aftersalesWorkOrder.getUnProcessorEntityList())) { |
|
|
|
// if (ObjectUtil.isNotNull(aftersalesWorkOrder.getUnProcessorEntityList())) {
|
|
|
|
//责任方 处理方
|
|
|
|
// //责任方 处理方
|
|
|
|
// List<AftersalesProcessorEntity> list = new ArrayList<>();
|
|
|
|
//// List<AftersalesProcessorEntity> list = new ArrayList<>();
|
|
|
|
aftersalesWorkOrder.getUnProcessorEntityList().forEach(i -> { |
|
|
|
// aftersalesWorkOrder.getUnProcessorEntityList().forEach(i -> {
|
|
|
|
AftersalesProcessorEntity processorEntity = new AftersalesProcessorEntity(); |
|
|
|
// AftersalesProcessorEntity processorEntity = new AftersalesProcessorEntity();
|
|
|
|
processorEntity.setId(i); |
|
|
|
// processorEntity.setId(i);
|
|
|
|
processorEntity.setConditions("3"); |
|
|
|
// processorEntity.setConditions("3");
|
|
|
|
if (ObjectUtils.isNotNull(aftersalesWorkOrder.getProcessorEntityList())) { |
|
|
|
// if (ObjectUtils.isNotNull(aftersalesWorkOrder.getProcessorEntityList())) {
|
|
|
|
aftersalesWorkOrder.getProcessorEntityList().stream().collect(Collectors.groupingBy(AftersalesProcessorEntity::getTypesOf)) |
|
|
|
// aftersalesWorkOrder.getProcessorEntityList().stream().collect(Collectors.groupingBy(AftersalesProcessorEntity::getTypesOf))
|
|
|
|
.forEach((k, v) -> { |
|
|
|
// .forEach((k, v) -> {
|
|
|
|
if ("1".equals(k)) { |
|
|
|
// if ("1".equals(k)) {
|
|
|
|
//责任人
|
|
|
|
// //责任人
|
|
|
|
String collect = v.stream().map(AftersalesProcessorEntity::getBusinessName).collect(Collectors.joining(",")); |
|
|
|
// String collect = v.stream().map(AftersalesProcessorEntity::getBusinessName).collect(Collectors.joining(","));
|
|
|
|
aftersalesWorkOrder.setResponsiblePerson(collect); |
|
|
|
// aftersalesWorkOrder.setResponsiblePerson(collect);
|
|
|
|
} else { |
|
|
|
// } else {
|
|
|
|
String collect = v.stream().map(AftersalesProcessorEntity::getBusinessName).collect(Collectors.joining(",")); |
|
|
|
// String collect = v.stream().map(AftersalesProcessorEntity::getBusinessName).collect(Collectors.joining(","));
|
|
|
|
aftersalesWorkOrder.setProcessedBy(collect); |
|
|
|
// aftersalesWorkOrder.setProcessedBy(collect);
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
aftersalesProcessorService.updateById(processorEntity); |
|
|
|
|
|
|
|
// list.add(processorEntity);
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
// if(!list.isEmpty()){
|
|
|
|
|
|
|
|
// aftersalesProcessorService.saveOrUpdateBatch(list);
|
|
|
|
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
} |
|
|
|
//
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// aftersalesProcessorService.updateById(processorEntity);
|
|
|
|
|
|
|
|
//// list.add(processorEntity);
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
//// if(!list.isEmpty()){
|
|
|
|
|
|
|
|
//// aftersalesProcessorService.saveOrUpdateBatch(list);
|
|
|
|
|
|
|
|
//// }
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
LambdaUpdateWrapper<AftersalesProcessorEntity> processorEntityLambdaUpdateWrapper = Wrappers.<AftersalesProcessorEntity>lambdaUpdate() |
|
|
|
|
|
|
|
.set(AftersalesProcessorEntity::getIsDeleted, 1) |
|
|
|
|
|
|
|
.eq(AftersalesProcessorEntity::getWorkOrderId, aftersalesWorkOrder.getId()); |
|
|
|
|
|
|
|
aftersalesProcessorService.update(processorEntityLambdaUpdateWrapper); |
|
|
|
// if (ObjectUtil.isNotNull(aftersalesWorkOrder.getUnDecreaseImageEntityList()) && !aftersalesWorkOrder.getUnDecreaseImageEntityList().isEmpty()) {
|
|
|
|
// if (ObjectUtil.isNotNull(aftersalesWorkOrder.getUnDecreaseImageEntityList()) && !aftersalesWorkOrder.getUnDecreaseImageEntityList().isEmpty()) {
|
|
|
|
// //图片修改
|
|
|
|
// //图片修改
|
|
|
|
// aftersalesDecreaseImageService.deleteLogic(aftersalesWorkOrder.getUnDecreaseImageEntityList());
|
|
|
|
// aftersalesDecreaseImageService.deleteLogic(aftersalesWorkOrder.getUnDecreaseImageEntityList());
|
|
|
|