提交流程节点提交时推送连接不完整问题

This commit is contained in:
wulin 2020-11-19 09:47:42 +08:00
parent ee3057e583
commit 3fa2094e78

View File

@ -213,8 +213,10 @@ public class DingtalkBusiness {
ResultRecord resultRecord = resultRecordService.selectResultRecordById(resultRecordId); ResultRecord resultRecord = resultRecordService.selectResultRecordById(resultRecordId);
if(resultRecord != null){ if(resultRecord != null){
StaffSimpleInfo fromStaff = staffService.selectStaffSimpleInfo(resultRecord.getStaffId()); StaffSimpleInfo fromStaff = staffService.selectStaffSimpleInfo(resultRecord.getStaffId());
fromStaff.setRecordId(resultRecord.getId());
fromStaff.setStartId(resultRecord.getStartId());
List<StaffSimpleInfo> toStaffids; List<StaffSimpleInfo> toStaffids;
if(type == WorkMsgTypeEnum.REJECT.getType()){ if(type == WorkMsgTypeEnum.REJECT.getType()){//被拒
toStaffids = new ArrayList<>(); toStaffids = new ArrayList<>();
toStaffids.add(fromStaff); toStaffids.add(fromStaff);
sendWorkMSGWithAsyn(fromStaff, toStaffids, WorkMsgTypeEnum.REJECT.getType()); sendWorkMSGWithAsyn(fromStaff, toStaffids, WorkMsgTypeEnum.REJECT.getType());
@ -228,6 +230,11 @@ public class DingtalkBusiness {
} }
}).collect(Collectors.toList()); }).collect(Collectors.toList());
toStaffids = staffService.selectStaffSimpleInfos(ids); toStaffids = staffService.selectStaffSimpleInfos(ids);
for (StaffSimpleInfo simpleInfo:toStaffids
) {
simpleInfo.setRecordId(resultRecord.getId());
simpleInfo.setStartId(resultRecord.getStartId());
}
sendWorkMSGWithAsyn(fromStaff, toStaffids, WorkMsgTypeEnum.PROCESS.getType()); sendWorkMSGWithAsyn(fromStaff, toStaffids, WorkMsgTypeEnum.PROCESS.getType());
} }