| | |
| | | @Resource |
| | | private IWarningAnalyseService warningAnalyseService; |
| | | |
| | | @Value("${csv.cron_max}") |
| | | private int cronMax = 48; |
| | | |
| | | @Value("${csv.voc_max}") |
| | | private int vocMax = 120; |
| | | |
| | | @Value("${csv.cron_max}") |
| | | private int cronMax = 72; |
| | | |
| | | private final static List<String> md5List = new ArrayList<>(); |
| | | |
| | |
| | | private void loadVocSync() { |
| | | vocValsService.deleteLastYear(); |
| | | Calendar calendar = getCalendar(96); |
| | | for (int i = 0; i < cronMax; i++) { |
| | | for (int i = 0; i < vocMax; i++) { |
| | | calendar.add(Calendar.HOUR, -1); |
| | | String time = format.format(calendar.getTime()); |
| | | String filePath = csvFilePathConfig.getVocPath() + File.separator + time + ".csv"; |
| | |
| | | @Scheduled(cron = "${csv.cron}") |
| | | private void loadCsvSync() { |
| | | Calendar calendar = getCalendar(1); |
| | | for (int i = 0; i < vocMax; i++) { |
| | | for (int i = 0; i < cronMax; i++) { |
| | | calendar.add(Calendar.HOUR, -1); |
| | | String time = format.format(calendar.getTime()); |
| | | String filePath = csvFilePathConfig.getFilePath() + File.separator + time + ".csv"; |