Fancy
2024-12-19 3c61c5f4bc92f75b4fe60653eaa676a21cde4325
pms-parent/pms-web-other/src/main/java/com/dy/pmsOther/config/AppStartupRunner.java
@@ -1,10 +1,9 @@
package com.dy.pmsOther.config;
import com.dy.common.schedulerTask.SchedulerTaskSupport;
import com.dy.pmsGlobal.daoSta.StaDeviceProductionLogPastMapper;
import com.dy.pmsOther.task.DeviceCountTask;
import com.dy.pmsOther.task.WorkloadTask;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
@@ -16,5 +15,8 @@
        //每天人员工作量统计
        SchedulerTaskSupport.addDailyJob("workloadTask", "station", WorkloadTask.class,
                null, 0, 5);
        //每天完成设备数量统计
        SchedulerTaskSupport.addDailyJob("deviceCountTask", "station", DeviceCountTask.class,
                null,23,50);
    }
}