From 17118d16cb856b92da39d438e7436a54bce4eaf0 Mon Sep 17 00:00:00 2001
From: admin <2780501319@qq.com>
Date: 星期六, 30 五月 2020 18:51:54 +0800
Subject: [PATCH] 发圈重复

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/dynamic/GoodsEvaluateServiceImpl.java |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/dynamic/GoodsEvaluateServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/dynamic/GoodsEvaluateServiceImpl.java
index bf01463..980fe1b 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/dynamic/GoodsEvaluateServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/dynamic/GoodsEvaluateServiceImpl.java
@@ -66,7 +66,6 @@
 import com.yeshi.fanli.util.MoneyBigDecimalUtil;
 import com.yeshi.fanli.util.RedisManager;
 import com.yeshi.fanli.util.StringUtil;
-import com.yeshi.fanli.util.TimeUtil;
 import com.yeshi.fanli.util.cache.JDGoodsCacheUtil;
 import com.yeshi.fanli.util.cache.PinDuoDuoCacheUtil;
 import com.yeshi.fanli.util.factory.goods.GoodsDetailVOFactory;
@@ -1921,7 +1920,7 @@
 			throw new GoodsEvaluateException(1, "鐩稿叧鍙傛暟涓嶈兘涓虹┖");
 		}
 
-		List<GoodsEvaluate> evaluateList = goodsEvaluateDao.queryExist(Constant.SOURCE_TYPE_TAOBAO, Long.parseLong(goodsId));
+		List<GoodsEvaluate> evaluateList = goodsEvaluateDao.queryExist(Constant.SOURCE_TYPE_TAOBAO, goodsId);
 		if (evaluateList != null && evaluateList.size() > 0)
 			return;
 
@@ -2311,7 +2310,7 @@
 				return;
 			}
 			List<GoodsEvaluate> queryExist = goodsEvaluateDao.queryExist(Constant.SOURCE_TYPE_TAOBAO,
-					goods.getAuctionId());
+					goods.getAuctionId()+"");
 			if (queryExist == null || queryExist.size() == 0) {
 				return;
 			}
@@ -2331,7 +2330,7 @@
 		if (jdGoods == null) {
 			return;
 		}
-		List<GoodsEvaluate> queryExist = goodsEvaluateDao.queryExist(Constant.SOURCE_TYPE_JD, jdGoods.getSkuId());
+		List<GoodsEvaluate> queryExist = goodsEvaluateDao.queryExist(Constant.SOURCE_TYPE_JD, jdGoods.getSkuId()+"");
 		if (queryExist == null || queryExist.size() == 0) {
 			return;
 		}
@@ -2348,7 +2347,7 @@
 		if (pddGoods == null) {
 			return;
 		}
-		List<GoodsEvaluate> queryExist = goodsEvaluateDao.queryExist(Constant.SOURCE_TYPE_PDD, pddGoods.getGoodsId());
+		List<GoodsEvaluate> queryExist = goodsEvaluateDao.queryExist(Constant.SOURCE_TYPE_PDD, pddGoods.getGoodsId()+"");
 		if (queryExist == null || queryExist.size() == 0) {
 			return;
 		}
@@ -2365,7 +2364,7 @@
 			return;
 		}
 		List<GoodsEvaluate> queryExist = goodsEvaluateDao.queryExist(Constant.SOURCE_TYPE_VIP,
-				Long.parseLong(goods.getGoodsId()));
+				goods.getGoodsId());
 		if (queryExist == null || queryExist.size() == 0) {
 			return;
 		}
@@ -2382,7 +2381,7 @@
 			return;
 		}
 		List<GoodsEvaluate> queryExist = goodsEvaluateDao.queryExist(Constant.SOURCE_TYPE_SUNING,
-				Long.parseLong(goods.getCommodityInfo().getCommodityCode()));
+				goods.getCommodityInfo().getCommodityCode());
 		if (queryExist == null || queryExist.size() == 0) {
 			return;
 		}
@@ -2442,7 +2441,7 @@
 			if (goodsId == null) {
 				return;
 			}
-			List<GoodsEvaluate> list = goodsEvaluateDao.queryExist(Constant.SOURCE_TYPE_TAOBAO,Long.parseLong(goodsId));
+			List<GoodsEvaluate> list = goodsEvaluateDao.queryExist(Constant.SOURCE_TYPE_TAOBAO,goodsId);
 			if (list == null || list.size() == 0) {
 				return;
 			}

--
Gitblit v1.8.0