From 3e42b993000e4505c2f33c9242439da3a101763a Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期二, 06 六月 2023 10:26:43 +0800 Subject: [PATCH] 修改入库定时程序 --- src/main/resources/application-scheduled.yml | 4 ++-- src/main/java/com/yssh/service/VocValsService.java | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/yssh/service/VocValsService.java b/src/main/java/com/yssh/service/VocValsService.java index c9947a2..da96f6a 100644 --- a/src/main/java/com/yssh/service/VocValsService.java +++ b/src/main/java/com/yssh/service/VocValsService.java @@ -50,7 +50,7 @@ } @Async("threadPoolTaskExecutor") - public int insertVocVals(List<VocVals> list) throws InterruptedException { + public void insertVocVals(List<VocVals> list) throws InterruptedException { List<List<VocVals>> lists = Lists.partition(list, IAsyncService.BATCH_INSERT_500); CountDownLatch countDownLatch = new CountDownLatch(list.size()); @@ -60,8 +60,6 @@ countDownLatch.await(); logger.info("------ VOC.csv锛�" + lists.size() + " 鏉℃暟鎹凡鍏ュ簱 ------"); - - return list.size(); } private void executeAsync(List<VocVals> corpList, CountDownLatch countDownLatch) { diff --git a/src/main/resources/application-scheduled.yml b/src/main/resources/application-scheduled.yml index f469379..162ffa0 100644 --- a/src/main/resources/application-scheduled.yml +++ b/src/main/resources/application-scheduled.yml @@ -1,3 +1,3 @@ csv: - cron: '0 18 * * * ? ' - voc: '0 19 10 * * ? ' + cron: '0 1 * * * ? ' + voc: '0 21 10 * * ? ' -- Gitblit v1.9.3