From 1e676b408c8c7e1ccca08b151619d89fdc2bc9bf Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期二, 10 十月 2023 14:40:31 +0800 Subject: [PATCH] Merge branch 'dev' of http://139.186.142.91:10010/r/productDev/parkBike into dev --- server/platform/src/main/java/com/doumee/task/ScheduleTool.java | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/server/platform/src/main/java/com/doumee/task/ScheduleTool.java b/server/platform/src/main/java/com/doumee/task/ScheduleTool.java index c9873e4..84637d1 100644 --- a/server/platform/src/main/java/com/doumee/task/ScheduleTool.java +++ b/server/platform/src/main/java/com/doumee/task/ScheduleTool.java @@ -2,10 +2,14 @@ import com.doumee.biz.system.SystemDictDataBiz; +import com.doumee.core.utils.DateUtil; +import com.doumee.service.business.WxBillService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.annotation.EnableScheduling; import org.springframework.scheduling.annotation.Scheduled; import org.springframework.stereotype.Component; + +import java.util.Date; /** * 瀹氭椂浠诲姟 @@ -21,13 +25,27 @@ @Autowired private SystemDictDataBiz systemDictDataBiz; + @Autowired + private WxBillService wxBillService; /** * @throws Exception */ - @Scheduled(cron = "0 0 02 * * ? ") + @Scheduled(cron = "0 0 11 * * ? ") public void syncStudent() throws Exception { + //鍓嶄竴澶╃殑鏁告摎 + Date ydate = DateUtil.addDaysToDate(new Date(), -1); + wxBillService.getWxBill(ydate); + } + /** + * 娓│ + * @throws Exception + */ +// @Scheduled(fixedDelay = 1000*60) + public void getYesterdayBill() throws Exception { + Date ydate = DateUtil.addDaysToDate(new Date(), -1); + wxBillService.getWxBill(ydate); } } -- Gitblit v1.9.3