swb
2024-06-27 db153ac7fbbd132e0b850c1ebc93122da5fe99e0
screen-job/src/main/java/com/moral/api/task/HistoryTableInsertTask.java
@@ -7,8 +7,10 @@
import com.moral.api.service.HistoryFiveMinutelyService;
import com.moral.api.service.HistoryHourlyService;
import com.moral.api.service.HistoryMonthlyService;
import com.moral.api.service.HistorySecondCruiserService;
import com.moral.api.service.HistoryWeeklyService;
import com.moral.api.service.ManageCoordinateDetailService;
import com.moral.api.service.impl.HistorySecondCruiserServiceImpl;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
@@ -37,6 +39,10 @@
    @Autowired
    private ManageCoordinateDetailService manageCoordinateDetailService;
    @Autowired
    private HistorySecondCruiserService historySecondCruiserService;
    //5分钟数据统计
    @XxlJob("insertHistoryFiveMinutely")
@@ -165,4 +171,20 @@
    }
    /**
     * 走航车路段排名
     * @return
     */
    @XxlJob("secondCruiserSort")
    public ReturnT secondCruiserSort(){
        try {
            historySecondCruiserService.sort(null,null);
        } catch (Exception e) {
            XxlJobHelper.log(e.getMessage());
            return new ReturnT(ReturnT.FAIL_CODE, e.getMessage());
        }
        return ReturnT.SUCCESS;
    }
}