| | |
| | | package com.yssh.run; |
| | | |
| | | import com.yssh.scheduled.ReadCsvTask; |
| | | import com.yssh.service.impl.WarningAnalyseServiceImpl; |
| | | import com.yssh.utils.CacheUtils; |
| | | import org.apache.commons.logging.Log; |
| | | import org.apache.commons.logging.LogFactory; |
| | |
| | | import com.yssh.service.IDictRecordService; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Calendar; |
| | | |
| | | @Component |
| | | public class InitDataRunner implements ApplicationRunner { |
| | |
| | | |
| | | @Autowired |
| | | private IDictRecordService dictRecordService; |
| | | |
| | | @Resource |
| | | WarningAnalyseServiceImpl warningAnalyseService; |
| | | |
| | | @Resource |
| | | ReadCsvTask task; |
| | |
| | | // 读取dat数据 |
| | | commonService.readDatData(); |
| | | |
| | | //test(); |
| | | logger.info("***************** 系统启动完毕 *****************" + "\n"); |
| | | } |
| | | |
| | | private void test() { |
| | | //task.corpReserveDataSync(); |
| | | |
| | | logger.info("***************** 系统启动完毕 *****************" + "\n"); |
| | | Calendar calendar = Calendar.getInstance(); |
| | | calendar.set(Calendar.MONTH, 5); |
| | | calendar.set(Calendar.DAY_OF_MONTH, 8); |
| | | calendar.set(Calendar.HOUR_OF_DAY, 13); |
| | | |
| | | warningAnalyseService.warningOperationStorage(calendar.getTime()); |
| | | } |
| | | } |