|
@@ -1,11 +1,16 @@
|
|
package com.ruoyi.job.service;
|
|
package com.ruoyi.job.service;
|
|
|
|
|
|
import com.ruoyi.demo.service.PlanService;
|
|
import com.ruoyi.demo.service.PlanService;
|
|
|
|
+import com.xxl.job.core.biz.model.ReturnT;
|
|
|
|
+import com.xxl.job.core.context.XxlJobHelper;
|
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
+import java.time.LocalDateTime;
|
|
|
|
+import java.time.ZoneId;
|
|
|
|
+
|
|
@Slf4j
|
|
@Slf4j
|
|
@Service
|
|
@Service
|
|
public class PlanPushService {
|
|
public class PlanPushService {
|
|
@@ -14,6 +19,8 @@ public class PlanPushService {
|
|
|
|
|
|
@XxlJob("planPushJobHandler")
|
|
@XxlJob("planPushJobHandler")
|
|
public void start() throws Exception {
|
|
public void start() throws Exception {
|
|
|
|
+ XxlJobHelper.log("start planPushStatistics"+ LocalDateTime.now(ZoneId.of("Asia/Shanghai")));
|
|
planService.planPushStatisticsStart();
|
|
planService.planPushStatisticsStart();
|
|
|
|
+ XxlJobHelper.log("finish planPushStatistics"+ LocalDateTime.now(ZoneId.of("Asia/Shanghai")));
|
|
}
|
|
}
|
|
}
|
|
}
|