From e40a072541e1b31add7ed345e47adf61c49ecf4f Mon Sep 17 00:00:00 2001 From: jiaosong <jiaosong6760@dingtalk.com> Date: 星期五, 13 十月 2023 09:05:39 +0800 Subject: [PATCH] #获取可退款信息 --- server/platform/src/main/java/com/doumee/task/ScheduleTool.java | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 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 84637d1..71b740e 100644 --- a/server/platform/src/main/java/com/doumee/task/ScheduleTool.java +++ b/server/platform/src/main/java/com/doumee/task/ScheduleTool.java @@ -2,14 +2,21 @@ import com.doumee.biz.system.SystemDictDataBiz; +import com.doumee.core.constants.Constants; +import com.doumee.core.exception.BusinessException; import com.doumee.core.utils.DateUtil; +import com.doumee.dao.business.model.Goodsorder; +import com.doumee.service.business.GoodsorderService; import com.doumee.service.business.WxBillService; +import lombok.extern.slf4j.Slf4j; 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 org.springframework.util.CollectionUtils; import java.util.Date; +import java.util.List; /** * 瀹氭椂浠诲姟 @@ -19,15 +26,19 @@ */ @Component @EnableScheduling +@Slf4j public class ScheduleTool { @Autowired private SystemDictDataBiz systemDictDataBiz; + @Autowired private WxBillService wxBillService; + @Autowired + private GoodsorderService goodsorderService; /** * @throws Exception */ @@ -42,10 +53,11 @@ * 娓│ * @throws Exception */ -// @Scheduled(fixedDelay = 1000*60) + @Scheduled(cron = "0 0 21 * * ? ") public void getYesterdayBill() throws Exception { - Date ydate = DateUtil.addDaysToDate(new Date(), -1); - wxBillService.getWxBill(ydate); + log.info("=====================寮�濮嬫瘡澶╄嚜鍔ㄧ粨绠�======================="); + goodsorderService.autoCloseOrder(); + log.info("=====================缁撴潫姣忓ぉ鑷姩缁撶畻======================="); } } -- Gitblit v1.9.3