diff --git a/src/main/java/com/lz/modules/flow/service/impl/FlowStartServiceImpl.java b/src/main/java/com/lz/modules/flow/service/impl/FlowStartServiceImpl.java index ed91db23..690438fe 100644 --- a/src/main/java/com/lz/modules/flow/service/impl/FlowStartServiceImpl.java +++ b/src/main/java/com/lz/modules/flow/service/impl/FlowStartServiceImpl.java @@ -103,7 +103,6 @@ public class FlowStartServiceImpl extends ServiceImpl threadInitFlowRecords = new ArrayList<>(); @@ -811,7 +810,7 @@ public class FlowStartServiceImpl extends ServiceImpl resultRecords, List noticeStaff){ if(resultRecords.size() > 0){ ThreadInitFlowRecord threadInitFlowRecord = new ThreadInitFlowRecord(resultRecords, noticeStaff); - threadInitFlowRecords.add(threadInitFlowRecord); + Thread thread = new Thread(threadInitFlowRecord); thread.start(); @@ -824,7 +823,9 @@ public class FlowStartServiceImpl extends ServiceImpl noticeStaff = new ArrayList<>(); public ThreadInitFlowRecord(List resultRecords, List noticeStaff){ - this.resultRecords.addAll(resultRecords); + CollectionUtils.addAll(this.resultRecords, new Object[resultRecords.size()]); + Collections.copy(resultRecords, resultRecords); + //this.resultRecords.addAll(resultRecords); this.noticeStaff.addAll(noticeStaff); } @@ -842,7 +843,6 @@ public class FlowStartServiceImpl extends ServiceImpl