优化测试

This commit is contained in:
wulin 2020-11-17 14:45:49 +08:00
parent f667a85842
commit f3bfabbf35

View File

@ -716,7 +716,7 @@ public class FlowStartServiceImpl extends ServiceImpl<FlowStartMapper, FlowStart
//resultRecordService.insertResultRecord(resultRecord); //resultRecordService.insertResultRecord(resultRecord);
//staffInfo.setRecordId(resultRecord.getId()); //staffInfo.setRecordId(resultRecord.getId());
//下面生成实际的考核流程 //下面生成实际的考核流程
resultRecordService.initFlowRecord(resultRecord.getId()); //resultRecordService.initFlowRecord(resultRecord.getId());
//下面生成ResultDetail对象 //下面生成ResultDetail对象
for (ResultModelDto modelDto:resultModelDtos for (ResultModelDto modelDto:resultModelDtos
) { ) {
@ -729,7 +729,7 @@ public class FlowStartServiceImpl extends ServiceImpl<FlowStartMapper, FlowStart
resultDetail.setType(modelDto.getType()); resultDetail.setType(modelDto.getType());
resultDetail.setKeyResult(libDto.getKeyResult()); resultDetail.setKeyResult(libDto.getKeyResult());
resultDetail.setCheckWeight(libDto.getWeight()); resultDetail.setCheckWeight(libDto.getWeight());
resultDetail.setStaffId(resultRecord.getStaffId()); resultDetail.setStaffId(resultRecord.getId());
resultDetail.setPriority(libDto.getOrderBy()); resultDetail.setPriority(libDto.getOrderBy());
resultDetail.setModelId(modelDto.getId()); resultDetail.setModelId(modelDto.getId());
resultDetails.add(resultDetail); resultDetails.add(resultDetail);