子线程测试
This commit is contained in:
parent
33c7638083
commit
65a5f94ea2
@ -103,7 +103,8 @@ public class FlowStartServiceImpl extends ServiceImpl<FlowStartMapper, FlowStart
|
||||
@Autowired
|
||||
private DingtalkBusiness dingtalkBusiness;
|
||||
|
||||
List<Thread> threads = new ArrayList<>();
|
||||
ThreadInitFlowRecord threadInitFlowRecord;// = new ThreadInitFlowRecord(resultRecords, noticeStaff);
|
||||
Thread thread;
|
||||
|
||||
|
||||
|
||||
@ -810,10 +811,9 @@ public class FlowStartServiceImpl extends ServiceImpl<FlowStartMapper, FlowStart
|
||||
|
||||
private void initFlowRecordAnsy(List<ResultRecord> resultRecords, List<StaffSimpleInfo> noticeStaff){
|
||||
if(resultRecords.size() > 0){
|
||||
ThreadInitFlowRecord threadInitFlowRecord = new ThreadInitFlowRecord(resultRecords, noticeStaff);
|
||||
Thread thread = new Thread(threadInitFlowRecord);
|
||||
threadInitFlowRecord = new ThreadInitFlowRecord(resultRecords, noticeStaff);
|
||||
thread = new Thread(threadInitFlowRecord);
|
||||
thread.start();
|
||||
threads.add(thread);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user