From beb6e85c9b054e8edced241c3367814a0a19d70c Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Wed, 07 Apr 2021 11:42:38 +0800 Subject: [PATCH] Merge branch 'score_shop' of http://120.27.238.55:7000/r/beauty-erp into score_shop --- zq-erp/src/main/java/com/matrix/system/shopXcx/quartz/ShopActivityTimeOutQuartz.java | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/zq-erp/src/main/java/com/matrix/system/shopXcx/quartz/ShopActivityTimeOutQuartz.java b/zq-erp/src/main/java/com/matrix/system/shopXcx/quartz/ShopActivityTimeOutQuartz.java index 10e754d..1075d98 100644 --- a/zq-erp/src/main/java/com/matrix/system/shopXcx/quartz/ShopActivityTimeOutQuartz.java +++ b/zq-erp/src/main/java/com/matrix/system/shopXcx/quartz/ShopActivityTimeOutQuartz.java @@ -9,7 +9,6 @@ import com.matrix.system.shopXcx.bean.*; import com.matrix.system.shopXcx.dao.*; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Configuration; import org.springframework.scheduling.annotation.Scheduled; @@ -38,13 +37,11 @@ @Autowired private ShopActivitiesGroupJoinUserDao shopActivitiesGroupJoinUserDao; - @Value("${scheduling.enabled}") - private boolean taskSwitch; @Scheduled(cron = "0 */1 * * * ?") public void executeExt() { - if (taskSwitch) { + LogUtil.info("#拼团活动自动结束任务#"); List<ShopActivities> actList = shopActivitiesDao.selectShopActivitiesHasEnd(); if (CollectionUtils.isNotEmpty(actList)) { @@ -63,7 +60,7 @@ } } } - } + } /** -- Gitblit v1.9.1