| | |
| | | package com.yssh.run; |
| | | |
| | | import com.yssh.scheduled.ReadCsvTask; |
| | | import com.yssh.utils.CacheUtils; |
| | | import org.apache.commons.logging.Log; |
| | | import org.apache.commons.logging.LogFactory; |
| | |
| | | import com.yssh.service.ICommonService; |
| | | import com.yssh.service.IDictRecordService; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | @Component |
| | | public class InitDataRunner implements ApplicationRunner { |
| | | //protected final Log logger = LogFactory.getLog(this.getClass()); |
| | |
| | | @Autowired |
| | | private IDictRecordService dictRecordService; |
| | | |
| | | @Resource |
| | | ReadCsvTask task; |
| | | |
| | | @Override |
| | | public void run(ApplicationArguments args) throws Exception { |
| | | CacheUtils.init(); |
| | |
| | | if (!tableExists) { |
| | | dictRecordService.createDictRecoTable(); |
| | | } |
| | | //读取dat数据 |
| | | // 读取dat数据 |
| | | commonService.readDatData(); |
| | | |
| | | //task.corpReserveDataSync(); |
| | | |
| | | logger.info("***************** 系统启动完毕 *****************" + "\n"); |
| | | } |
| | | } |