From 8331dcdfbf36ff0874aa4f3b7e7dfb5137042f22 Mon Sep 17 00:00:00 2001 From: caoyizhong <1270296080> Date: Tue, 26 Dec 2023 15:49:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B7=A5=E5=8D=95=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E5=8F=AF=E4=BB=A5=E8=BF=BD=E5=8A=A0=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AftersalesWorkOrderController.java | 3 -- .../impl/AftersalesWorkOrderServiceImpl.java | 28 +++++++++++++------ 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java index d9e5b97fd..9b0c1ca47 100644 --- a/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java +++ b/blade-service/logpm-aftersales/src/main/java/com/logpm/aftersales/controller/AftersalesWorkOrderController.java @@ -198,9 +198,6 @@ public class AftersalesWorkOrderController extends BladeController { if(ObjectUtils.isNull(aftersalesWorkOrderDTO.getId())){ throw new ServiceException("异常工单ID不能为空"); } - if(ObjectUtils.isNull(aftersalesWorkOrderDTO.getProcessorEntityList())){ - throw new ServiceException("处理方信息不能为空"); - } return R.status(aftersalesWorkOrderService.savaSurveyRecord(aftersalesWorkOrderDTO)); } 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 f73fc20b1..9269e6c4a 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 @@ -305,9 +305,11 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl collect = list.stream().filter(i -> "1".equals(i.getProcessingStatus())).collect(Collectors.toList()); //添加待回复信息 collect.forEach( i ->{ - getPartyEntity(aftersalesWorkOrderDTO,i,surveyRecordDTO); + + AftersalesReplyingPartyEntity replyingPartyEntity = getPartyEntity(aftersalesWorkOrderDTO,i,surveyRecordEntity); + //添加待回复信息 + aftersalesReplyingPartyService.save(replyingPartyEntity); }); }else{ @@ -1207,6 +1215,8 @@ public class AftersalesWorkOrderServiceImpl extends BaseServiceImpl