|
@@ -7,6 +7,7 @@ import org.springframework.scheduling.annotation.Scheduled;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.time.LocalDateTime;
|
|
|
|
|
|
/**
|
|
|
* @author ZhangXianyu
|
|
@@ -35,6 +36,11 @@ public class OrderCostMonitorAlarmTask {
|
|
|
}
|
|
|
log.info("订单与消耗监控告警定时任务开始.");
|
|
|
try {
|
|
|
+ //0点0分到0点30分不执行
|
|
|
+ LocalDateTime now = LocalDateTime.now();
|
|
|
+ if(now.getHour() == 0 && now.getMinute() <= 30){
|
|
|
+ return;
|
|
|
+ }
|
|
|
//监控订单表
|
|
|
orderCostMonitorAlarmService.monitorDataStatus();
|
|
|
//监控头条广告消耗表
|