From 309475cd863966dd68e7c20c703956202979bb79 Mon Sep 17 00:00:00 2001 From: Zhujx Date: Tue, 30 Sep 2025 14:14:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=9F=BA=E9=87=91=E5=91=A8=E6=B6=A8?= =?UTF-8?q?=E8=B7=8C=E5=B9=85=E6=8A=A5=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/xiang/xservice/xb/schedule/xb/FundCountJob.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) {