待办任务优化

This commit is contained in:
wulin 2020-11-23 09:19:20 +08:00
parent 71ada549b3
commit 9e3f26a00c

View File

@ -238,7 +238,7 @@ public class DingtalkBusiness {
ResultRecord resultRecord = resultRecordService.selectResultRecordById(resultRecordId); ResultRecord resultRecord = resultRecordService.selectResultRecordById(resultRecordId);
if(resultRecord != null){ if(resultRecord != null){
FlowStart flowStart = flowStartService.selectFlowStartById(resultRecord.getStartId()); FlowStart flowStart = flowStartService.selectFlowStartById(resultRecord.getStartId());
StaffSimpleInfo fromStaff = staffService.selectStaffSimpleInfo(resultRecord.getStaffId()); StaffSimpleInfo fromStaff = staffService.selectStaffSimpleInfo(resultRecord.getStaffId());//查询来自那里
fromStaff.setResultRecord(resultRecord); fromStaff.setResultRecord(resultRecord);
fromStaff.setFlowStart(flowStart); fromStaff.setFlowStart(flowStart);
List<StaffSimpleInfo> toStaffids = new ArrayList<>(); List<StaffSimpleInfo> toStaffids = new ArrayList<>();
@ -480,10 +480,12 @@ public class DingtalkBusiness {
if(thirdMsgSendRecord != null){//把原来的任务更新掉 if(thirdMsgSendRecord != null){//把原来的任务更新掉
dingTalkUtil.updateWorkMSG(thirdMsgSendRecord, token); dingTalkUtil.updateWorkMSG(thirdMsgSendRecord, token);
} }
List<FlowRecord> flowRecords = flowRecordService.selectFlowRecordByRecordIdStatus(info.getResultRecord().getId(), 2); FlowRecord flowRecord = flowRecordService.selectFlowRecordById(flowChange.getFlowRecordId());
StaffSimpleInfo staffSimpleInfo = staffService.selectStaffSimpleInfo(flowRecord.getApprovalStaffId());
//List<FlowRecord> flowRecords = flowRecordService.selectFlowRecordByRecordIdStatus(info.getResultRecord().getId(), 2);
//发送待办任务到新指定人员转交过来一定会有数据 //发送待办任务到新指定人员转交过来一定会有数据
sendNotic(info.getId(), info.getEmployeeId(), sendNotic(info.getId(), staffSimpleInfo.getEmployeeId(),
flowRecords.get(0).getFlowName(), info.getFlowStart().getName(), flowRecord.getFlowName(), info.getFlowStart().getName(),
info.getResultRecord().getStaffName(), token, url, info.getResultRecord().getId()); info.getResultRecord().getStaffName(), token, url, info.getResultRecord().getId());