燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2023-08-10 c7cc3d90df2a412063188e5cdf025de6cd5bfcd9
src/main/java/com/yssh/config/InitConfig.java
@@ -19,7 +19,7 @@
@Component
public class InitConfig implements ApplicationRunner {
    //protected final Log logger = LogFactory.getLog(this.getClass());
    // protected final Log logger = LogFactory.getLog(this.getClass())
    protected final Logger logger = LoggerFactory.getLogger(this.getClass());
    @Resource
@@ -53,18 +53,25 @@
    private void test() {
        //task.corpReserveDataSync();
        //warningAnalyseService.warningOperationStorage(calendar.getTime());
        //warningAnalyseService.warningOperationStorage(cal.getTime());
        Calendar cal = Calendar.getInstance();
        cal.set(Calendar.MONTH, 6);
        cal.set(Calendar.DAY_OF_MONTH, 25);
        cal.set(Calendar.HOUR_OF_DAY, 14);
        cal.set(Calendar.MINUTE, 0);
        cal.set(Calendar.SECOND, 0);
        cal.set(Calendar.MILLISECOND, 0);
        /*Calendar cal1 = Calendar.getInstance();
        cal1.set(Calendar.MONTH, 6);
        cal1.set(Calendar.DAY_OF_MONTH, 25);
        cal1.set(Calendar.HOUR_OF_DAY, 14);
        cal1.set(Calendar.MINUTE, 0);
        cal1.set(Calendar.SECOND, 0);
        cal1.set(Calendar.MILLISECOND, 0);
        xlsReportService.createDayReport(cal1.getTime());*/
        xlsReportService.createDayReport(cal.getTime());
        // xlsReportService.createWeekReport();
        // xlsReportService.createMonthReport();
        Calendar cal2 = Calendar.getInstance();
        cal2.set(Calendar.MONTH, 6);
        cal2.set(Calendar.DAY_OF_MONTH, 31);
        xlsReportService.createWeekReport(cal2.getTime());
        /*Calendar cal3 = Calendar.getInstance();
        cal3.set(Calendar.MONTH, 7);
        cal3.set(Calendar.DAY_OF_MONTH, 1);
        xlsReportService.createMonthReport(cal3.getTime());*/
    }
}