|
|
|
@ -88,8 +88,7 @@ public class VSwryGjxxTask {
|
|
|
|
|
SwryMap.put("minTime", oneYearLaterFormattedDate);
|
|
|
|
|
List<VSwryGjxxOracle> Swrys = vSySwryGjxxOracleService.getSwryListByTime(SwryMap);
|
|
|
|
|
CountDownLatch latch = new CountDownLatch(Swrys.size());
|
|
|
|
|
ExecutorService SwryPool = Executors.newFixedThreadPool(5);
|
|
|
|
|
SwryPool.submit(() -> {
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
for (VSwryGjxxOracle swry : Swrys) {
|
|
|
|
|
if ("02".equals(swry.getGJLX())) {
|
|
|
|
@ -157,7 +156,7 @@ public class VSwryGjxxTask {
|
|
|
|
|
logger.info("Swrys:" + StringKit.getTrace(e));
|
|
|
|
|
}
|
|
|
|
|
latch.countDown();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
// Wait for all threads to complete
|
|
|
|
@ -165,8 +164,6 @@ public class VSwryGjxxTask {
|
|
|
|
|
} catch (InterruptedException e) {
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
// 关闭线程池
|
|
|
|
|
SwryPool.shutdown();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} catch (
|
|
|
|
|