src/main/java/com/yssh/config/ScheduleConfig.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/resources/mapper/VocValsMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/yssh/config/ScheduleConfig.java
@@ -52,8 +52,6 @@ @Value("${csv.cron_max}") private int cronMax = 48; private static boolean isBusy = false; private final static List<String> md5List = new ArrayList<>(); private final static SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHH"); @@ -65,9 +63,6 @@ @Scheduled(cron = "${csv.cron}") private void loadCsvSync() { if (isBusy) return; isBusy = true; logger.info("***************** 开始执行CSV入库 *****************" + "\n"); Calendar calendar = getCalendar(1); for (int i = 0; i < cronMax; i++) { @@ -101,7 +96,6 @@ } } logger.info("***************** CSV入库执行完成 *****************" + "\n"); isBusy = false; } public Calendar getCalendar(int start) { src/main/resources/mapper/VocValsMapper.xml
@@ -15,7 +15,7 @@ from voc_vals a inner join voc_addr b on a.x = b.x and a.y = b.y where a.create_time = #{time} and a.val > (select jcyj from alert_config); and a.val > (select jcyj from alert_config limit 1); </select> <select id="countByTime" resultType="java.lang.Integer">