|
@@ -100,6 +100,8 @@ import java.math.RoundingMode;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
import java.util.concurrent.CompletableFuture;
|
|
|
+import java.util.concurrent.ExecutorService;
|
|
|
+import java.util.concurrent.Executors;
|
|
|
import java.util.concurrent.ThreadPoolExecutor;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
@@ -119,9 +121,10 @@ public class ContractServiceImpl extends ServiceImpl<ContractMapper, Contract>
|
|
|
public static final int VALUE = 20;
|
|
|
private static final SimpleDateFormat sdf = new SimpleDateFormat("dd/MMM/yyyy", Locale.ENGLISH);
|
|
|
|
|
|
- @Qualifier(ThreadPoolConfig.threadPoolTaskExecutor)
|
|
|
- @Autowired
|
|
|
- private ThreadPoolExecutor threadPoolExecutor;
|
|
|
+ // @Qualifier(ThreadPoolConfig.threadPoolTaskExecutor)
|
|
|
+// @Autowired
|
|
|
+// private ThreadPoolExecutor threadPoolExecutor;
|
|
|
+ private ExecutorService threadPoolExecutor = Executors.newCachedThreadPool();
|
|
|
|
|
|
@Autowired
|
|
|
private CustomerService customerService;
|