diff --git a/script/src/main/java/com/xiang/xservice/xb/schedule/xb/FundCountJob.java b/script/src/main/java/com/xiang/xservice/xb/schedule/xb/FundCountJob.java index 956f717..edbaa87 100644 --- a/script/src/main/java/com/xiang/xservice/xb/schedule/xb/FundCountJob.java +++ b/script/src/main/java/com/xiang/xservice/xb/schedule/xb/FundCountJob.java @@ -2,6 +2,7 @@ package com.xiang.xservice.xb.schedule.xb; import com.alibaba.fastjson2.JSONObject; import com.google.common.collect.Lists; +import com.xiang.xservice.basic.utils.DateUtils; import com.xiang.xservice.xb.entity.pojo.xb.XbFundCount; import com.xiang.xservice.xb.entity.pojo.xb.XbFundList; import com.xiang.xservice.xb.entity.response.xbyj.fund.FundList; @@ -74,8 +75,8 @@ public class FundCountJob { } @Scheduled(cron = "0 40 14 * * ? ") - @PostMapping("/ddddd") public void countFundInWeek() throws Exception { + if (DateUtils.validWeekTime()) return; log.info("==========================[基金统计] 基金本周涨跌幅消息发送定时任务启动!=========================="); List xbFundCounts = fundService.queryFundCountInWeek(); if (CollectionUtils.isEmpty(xbFundCounts)) {