| | |
| | | @Resource |
| | | XlsReportService xlsReportService; |
| | | |
| | | @Resource |
| | | EmailService emailService; |
| | | |
| | | @Value("${csv.voc_max}") |
| | | private int vocMax = 96; |
| | | |
| | | @Value("${csv.cron_max}") |
| | | private int cronMax = 48; |
| | | |
| | | @Value("${email.enable}") |
| | | private Boolean enableEmail; |
| | | |
| | | private final static List<String> md5List = new ArrayList<>(); |
| | | |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | @Scheduled(cron = "${email.times}") |
| | | public void autoCalcData() { |
| | | if (enableEmail) { |
| | | //System.out.println("${email.times}"); |
| | | logger.info("***************** 开始数据预警计算 *****************" + "\n"); |
| | | emailService.calcData(); |
| | | logger.info("***************** 数据预警计算完成 *****************" + "\n"); |
| | | } |
| | | } |
| | | } |