From 146dbd5ed24c1fe63766aa45e0ce602caa39748e Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 25 八月 2022 17:53:10 +0800
Subject: [PATCH] 商品ID字符串化

---
 fanli/src/main/java/com/yeshi/fanli/dao/taobao/ShareHotGoodsDao.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/dao/taobao/ShareHotGoodsDao.java b/fanli/src/main/java/com/yeshi/fanli/dao/taobao/ShareHotGoodsDao.java
index 79178aa..80df536 100644
--- a/fanli/src/main/java/com/yeshi/fanli/dao/taobao/ShareHotGoodsDao.java
+++ b/fanli/src/main/java/com/yeshi/fanli/dao/taobao/ShareHotGoodsDao.java
@@ -2,6 +2,7 @@
 
 import java.util.List;
 
+import com.yeshi.fanli.util.taobao.TaoBaoUtil;
 import org.springframework.data.domain.Sort;
 import org.springframework.data.mongodb.core.query.Criteria;
 import org.springframework.data.mongodb.core.query.Query;
@@ -24,7 +25,7 @@
 
 	public void deleteByGoodsId(String goodsId) {
 		Query query = new Query();
-		Criteria ca = Criteria.where("goods.auctionId").is(goodsId);
+		Criteria ca = TaoBaoUtil.getAuctionIdEqualCriteria("goods.auctionId",goodsId);
 		query.addCriteria(ca);
 
 		List<ShareHotGoods> list = mongoTemplate.find(query, ShareHotGoods.class);
@@ -39,7 +40,7 @@
 
 	public List<ShareHotGoods> listByAuctionId(String auctionid) {
 		Query query = new Query();
-		Criteria ca = Criteria.where("goods.auctionId").is(auctionid);
+		Criteria ca = TaoBaoUtil.getAuctionIdEqualCriteria("goods.auctionId",auctionid);
 		query.addCriteria(ca);
 		return mongoTemplate.find(query, ShareHotGoods.class);
 	}

--
Gitblit v1.8.0