燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2024-11-01 2b75d84cabc3416d903f425239c713b65a98503f
src/main/java/com/yssh/config/InitConfig.java
@@ -3,8 +3,6 @@
import com.yssh.service.WarningAnalyseService;
import com.yssh.service.XlsReportService;
import com.yssh.utils.CacheUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.ApplicationArguments;
@@ -15,11 +13,10 @@
import com.yssh.service.DictRecordService;
import javax.annotation.Resource;
import java.util.Calendar;
@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
@@ -52,19 +49,28 @@
    }
    private void test() {
        //task.createMonthReport();
        //task.corpReserveDataSync();
        //warningAnalyseService.warningOperationStorage(calendar.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);
        //warningAnalyseService.warningOperationStorage(cal.getTime());
        xlsReportService.createDayReport(cal.getTime());
        // xlsReportService.createWeekReport();
        // xlsReportService.createMonthReport();
        /*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());*/
        /*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());*/
    }
}