子线程
This commit is contained in:
parent
6f36d0698a
commit
8b9c08ea80
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user