jinpengyong
2024-06-19 f05383c46370ec8c4f4b8b8165ffab3769dd06a2
screen-job/src/main/java/com/moral/api/task/HistoryTableInsertTask.java
@@ -8,6 +8,7 @@
import com.moral.api.service.HistoryHourlyService;
import com.moral.api.service.HistoryMonthlyService;
import com.moral.api.service.HistoryWeeklyService;
import com.moral.api.service.ManageCoordinateDetailService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
@@ -32,6 +33,10 @@
    @Autowired
    private HistoryMonthlyService historyMonthlyService;
    @Autowired
    private ManageCoordinateDetailService manageCoordinateDetailService;
    //5分钟数据统计
    @XxlJob("insertHistoryFiveMinutely")
@@ -132,7 +137,7 @@
    //疾控中心小时数据统计
    @XxlJob("dateInsertHistoryHourlyJKAvg")
    public ReturnT dateInsertJKAvg(){
    public ReturnT dateInsertHistoryHourlyJKAvg(){
        try {
            historyHourlyService.dateInsertHistoryHourlyJKAvg(null,null);
        } catch (Exception e) {
@@ -143,4 +148,21 @@
    }
    /**
     * 路段信息录入
     * @return
     */
    @XxlJob("manageCoordinateDetail")
    public ReturnT manageCoordinateDetail(){
        try {
            manageCoordinateDetailService.insertCoordinateDetail(null,null);
        } catch (Exception e) {
            XxlJobHelper.log(e.getMessage());
            return new ReturnT(ReturnT.FAIL_CODE, e.getMessage());
        }
        return ReturnT.SUCCESS;
    }
}