From 6d933cb7a7345b8fc9fd51be52b79ec4cd837a13 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期一, 12 八月 2019 12:19:15 +0800
Subject: [PATCH] 增加品牌商品更新任务

---
 fanli/src/main/java/com/yeshi/fanli/job/UpdateTaoBaoGoodsJob.java |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/job/UpdateTaoBaoGoodsJob.java b/fanli/src/main/java/com/yeshi/fanli/job/UpdateTaoBaoGoodsJob.java
index d1968f4..8b5a4f7 100644
--- a/fanli/src/main/java/com/yeshi/fanli/job/UpdateTaoBaoGoodsJob.java
+++ b/fanli/src/main/java/com/yeshi/fanli/job/UpdateTaoBaoGoodsJob.java
@@ -12,6 +12,7 @@
 import com.yeshi.fanli.exception.ActivityException;
 import com.yeshi.fanli.log.LogHelper;
 import com.yeshi.fanli.service.inter.activity.ActivityService;
+import com.yeshi.fanli.service.inter.brand.BrandClassShopGoodsService;
 import com.yeshi.fanli.service.inter.brand.BrandClassShopService;
 import com.yeshi.fanli.service.inter.goods.TaoBaoGoodsBriefService;
 import com.yeshi.fanli.service.inter.lable.LabelService;
@@ -63,6 +64,9 @@
 
 	@Resource
 	private TLJBuyGoodsService tljBuyGoodsService;
+
+	@Resource
+	private BrandClassShopGoodsService brandClassShopGoodsService;
 
 	// 鍔ㄦ�佸晢鍝佹洿鏂� 锛�1涓皬鏃舵洿鏂�
 	@Scheduled(cron = "0 0 */1 * * ?")
@@ -162,11 +166,19 @@
 		}
 	}
 
-	// 鏇存柊鍝佺墝鍟嗗搧锛屾瘡澶╂棭涓�6鐐规墽琛屼竴娆�
+	// 鏇存柊澧炲姞鍝佺墝鍟嗗搧锛屾瘡澶╂棭涓�6鐐规墽琛屼竴娆�
 	@Scheduled(cron = "0 0 6 * * ? ")
-	public void updateBrandGoods() {
+	public void updateAddBrandGoods() {
 		if (!Constant.IS_TASK)
 			return;
 		brandClassShopService.updateShopGoods();
 	}
+
+	// 鏇存柊鍘熸湁绮惧搧搴撶殑鍝佺墝鍟嗗搧锛屾瘡澶╁噷鏅�3鐐规墽琛屼竴娆�
+	@Scheduled(cron = "0 0 3 * * ? ")
+	public void updateBrandGoods() {
+		if (!Constant.IS_TASK)
+			return;
+		brandClassShopGoodsService.startUpdateGoods();
+	}
 }

--
Gitblit v1.8.0