From 72f99531c8575c5621bb6067939b8b73807ab22f Mon Sep 17 00:00:00 2001
From: yujian <yujian@123.com>
Date: 星期三, 15 五月 2019 14:51:38 +0800
Subject: [PATCH] 动态时间随机8分钟以内  + 分享优化

---
 fanli/src/main/java/com/yeshi/fanli/job/DynamicInfoJob.java |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/job/DynamicInfoJob.java b/fanli/src/main/java/com/yeshi/fanli/job/DynamicInfoJob.java
index e6e204b..4bd3795 100644
--- a/fanli/src/main/java/com/yeshi/fanli/job/DynamicInfoJob.java
+++ b/fanli/src/main/java/com/yeshi/fanli/job/DynamicInfoJob.java
@@ -129,9 +129,9 @@
 	@Scheduled(cron = "0 0/30 17,18,19,20 * * ? ")
 	public void insetShopInfo4() {
 		
-//		if (!Constant.IS_TASK) {
-//			return;
-//		}
+		if (!Constant.IS_TASK) {
+			return;
+		}
 		
 		try {
 			dynamicInfoService.insertShopInfo();
@@ -154,7 +154,7 @@
 //		if (!Constant.IS_TASK) {
 //			return;
 //		}
-//		
+		
 		try {
 			dynamicInfoService.removeByDate(DateUtil.reduceDay(3, new Date()));
 		} catch (Exception e) {
@@ -176,7 +176,7 @@
 //		if (!Constant.IS_TASK) {
 //			return;
 //		}
-//		
+		
 		try {
 			List<RecommendActivity> list = activityService.getNeedPublish();
 			if (list == null || list.size() == 0) {

--
Gitblit v1.8.0