优化测试

This commit is contained in:
wulin 2020-11-17 15:13:27 +08:00
parent 38decf8e91
commit 9749cad480

View File

@ -737,7 +737,7 @@ public class FlowStartServiceImpl extends ServiceImpl<FlowStartMapper, FlowStart
resultRecordService.insertResultRecord(resultRecord); resultRecordService.insertResultRecord(resultRecord);
staffInfo.setRecordId(resultRecord.getId()); staffInfo.setRecordId(resultRecord.getId());
//下面生成实际的考核流程 //下面生成实际的考核流程
List<Flow> flows = flowService.selectByFlowId(resultRecord.getEvaluationId(),resultRecord.getStartId()); /*List<Flow> flows = flowService.selectByFlowId(resultRecord.getEvaluationId(),resultRecord.getStartId());
List<Long> flowIds = new ArrayList<>(); List<Long> flowIds = new ArrayList<>();
for(Flow flow:flows){ for(Flow flow:flows){
flowIds.add(flow.getId()); flowIds.add(flow.getId());
@ -791,7 +791,7 @@ public class FlowStartServiceImpl extends ServiceImpl<FlowStartMapper, FlowStart
} }
i++; i++;
} }
resultRecordService.updateResultRecordById(resultRecord); resultRecordService.updateResultRecordById(resultRecord);*/
/*ExecutorService executor = Executors.newFixedThreadPool(10); /*ExecutorService executor = Executors.newFixedThreadPool(10);
List<ResultRecord> resultRecords = Lists.newArrayList(); List<ResultRecord> resultRecords = Lists.newArrayList();
@ -802,7 +802,9 @@ public class FlowStartServiceImpl extends ServiceImpl<FlowStartMapper, FlowStart
e.printStackTrace(); e.printStackTrace();
}*/ }*/
//resultRecordService.initFlowRecord(resultRecord.getId()); log.info("开始时间{}", System.currentTimeMillis());
resultRecordService.initFlowRecord(resultRecord.getId());
log.info("结束时间{}", System.currentTimeMillis());
//下面生成ResultDetail对象 //下面生成ResultDetail对象
for (ResultModelDto modelDto:resultModelDtos for (ResultModelDto modelDto:resultModelDtos
) { ) {