From 3fa2094e781eb6adad0e93064137606a4e62a8a2 Mon Sep 17 00:00:00 2001 From: wulin Date: Thu, 19 Nov 2020 09:47:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=B5=81=E7=A8=8B=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E6=8F=90=E4=BA=A4=E6=97=B6=E6=8E=A8=E9=80=81=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E4=B8=8D=E5=AE=8C=E6=95=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/lz/modules/job/business/DingtalkBusiness.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/lz/modules/job/business/DingtalkBusiness.java b/src/main/java/com/lz/modules/job/business/DingtalkBusiness.java index d74f8bb9..195e60f6 100644 --- a/src/main/java/com/lz/modules/job/business/DingtalkBusiness.java +++ b/src/main/java/com/lz/modules/job/business/DingtalkBusiness.java @@ -213,8 +213,10 @@ public class DingtalkBusiness { ResultRecord resultRecord = resultRecordService.selectResultRecordById(resultRecordId); if(resultRecord != null){ StaffSimpleInfo fromStaff = staffService.selectStaffSimpleInfo(resultRecord.getStaffId()); + fromStaff.setRecordId(resultRecord.getId()); + fromStaff.setStartId(resultRecord.getStartId()); List toStaffids; - if(type == WorkMsgTypeEnum.REJECT.getType()){ + if(type == WorkMsgTypeEnum.REJECT.getType()){//被拒 toStaffids = new ArrayList<>(); toStaffids.add(fromStaff); sendWorkMSGWithAsyn(fromStaff, toStaffids, WorkMsgTypeEnum.REJECT.getType()); @@ -228,6 +230,11 @@ public class DingtalkBusiness { } }).collect(Collectors.toList()); toStaffids = staffService.selectStaffSimpleInfos(ids); + for (StaffSimpleInfo simpleInfo:toStaffids + ) { + simpleInfo.setRecordId(resultRecord.getId()); + simpleInfo.setStartId(resultRecord.getStartId()); + } sendWorkMSGWithAsyn(fromStaff, toStaffids, WorkMsgTypeEnum.PROCESS.getType()); }