子线程

This commit is contained in:
wulin 2020-11-18 18:48:41 +08:00
parent 6f36d0698a
commit 8b9c08ea80

View File

@ -839,15 +839,15 @@ public class FlowStartServiceImpl extends ServiceImpl<FlowStartMapper, FlowStart
while(i > 0){ while(i > 0){
for (ResultRecord resultRecord:resultRecords for (ResultRecord resultRecord:resultRecords
) { ) {
resultRecordService.initFlowRecord(resultRecord.getId()); resultRecordService.initFlowRecord(resultRecord.getId());
} }
log.info("批量{}", i);
try { try {
Thread.sleep(1000); Thread.sleep(1000);
} catch (InterruptedException e) { } catch (InterruptedException e) {
e.printStackTrace(); e.printStackTrace();
} }
i--;
} }
//ch.qos.logback.classic.Logger.threadLocalNo.set(oldNo); //ch.qos.logback.classic.Logger.threadLocalNo.set(oldNo);