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()); }