From fdfd8e3a55428bf877c0ca93914c8509309da54a Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 05 九月 2019 17:40:47 +0800
Subject: [PATCH] 抖音广告监测

---
 fanli/src/main/java/com/yeshi/fanli/job/TaoLiJinJob.java |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/job/TaoLiJinJob.java b/fanli/src/main/java/com/yeshi/fanli/job/TaoLiJinJob.java
index d8835ed..69b4449 100644
--- a/fanli/src/main/java/com/yeshi/fanli/job/TaoLiJinJob.java
+++ b/fanli/src/main/java/com/yeshi/fanli/job/TaoLiJinJob.java
@@ -171,8 +171,25 @@
 	public void autoAddTLJBuyGoods2() {
 		if (!Constant.IS_TASK)
 			return;
+		LogHelper.test("鑷喘绔嬪噺寮�濮嬮�夊搧");
 		String day = TimeUtil.getGernalTime(System.currentTimeMillis(), "yyyy-MM-dd");
-		List<TaoBaoGoodsBrief> list = tljBuyGoodsService.listPreGoods(1);
+		// 閲嶈瘯3娆�
+		List<TaoBaoGoodsBrief> list = null;
+		try {
+			list = tljBuyGoodsService.listPreGoods(1);
+		} catch (Exception e) {
+		}
+		if (list == null || list.size() == 0)
+			try {
+				list = tljBuyGoodsService.listPreGoods(1);
+			} catch (Exception e) {
+			}
+		if (list == null || list.size() == 0)
+			try {
+				list = tljBuyGoodsService.listPreGoods(1);
+			} catch (Exception e) {
+			}
+
 		LogHelper.test("鑷喘绔嬪噺澶囬�夊晢鍝佹暟閲�:" + list.size());
 		Collections.shuffle(list);
 		List<TaoBaoUnionConfig> configList = taoBaoUnionConfigService

--
Gitblit v1.8.0