修复保存detail的staffid错误
This commit is contained in:
parent
cd82d98116
commit
43c590c94f
@ -260,7 +260,7 @@ public class FlowStartServiceImpl extends ServiceImpl<FlowStartMapper, FlowStart
|
||||
Map<Long, List<FlowChartRole>> mustRole = new HashMap<>();
|
||||
Map<Long, List<FlowChartRole>> selfMustRole = new HashMap<>();
|
||||
List<StaffSimpleInfo> noticeStaff = new ArrayList<>();
|
||||
List<StartStartDto> resultRecords = new ArrayList<>();
|
||||
List<StartStartDto> startStartDtos = new ArrayList<>();
|
||||
for (int n = 0; n < evaluationGroups.size(); n++
|
||||
) {
|
||||
EvaluationGroup evaluationGroup = evaluationGroups.get(n);
|
||||
@ -307,11 +307,11 @@ public class FlowStartServiceImpl extends ServiceImpl<FlowStartMapper, FlowStart
|
||||
return R.error(evaluationGroup.getName() + "——初始化考核流程失败");
|
||||
case 0:
|
||||
noticeStaff.addAll(staffIds);
|
||||
resultRecords.add(startDto);
|
||||
startStartDtos.add(startDto);
|
||||
break;
|
||||
}
|
||||
}
|
||||
initFlowRecordAnsy(resultRecords, noticeStaff);
|
||||
initFlowRecordAnsy(startStartDtos, noticeStaff);
|
||||
//dingtalkBusiness.sendWorkMSGWithAsyn(noticeStaff, WorkMsgTypeEnum.START_WORK.getType());
|
||||
return R.ok("发起成功").put("data", flowStart);
|
||||
}
|
||||
@ -774,7 +774,7 @@ public class FlowStartServiceImpl extends ServiceImpl<FlowStartMapper, FlowStart
|
||||
resultDetail.setType(modelDto.getType());
|
||||
resultDetail.setKeyResult(libDto.getKeyResult());
|
||||
resultDetail.setCheckWeight(libDto.getWeight());
|
||||
resultDetail.setStaffId(resultRecord.getId());
|
||||
resultDetail.setStaffId(resultRecord.getStaffId());
|
||||
resultDetail.setPriority(libDto.getOrderBy());
|
||||
resultDetail.setModelId(modelDto.getId());
|
||||
resultDetails.add(resultDetail);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user