From dd5b15229cb15459fa7c31ccea77dac28cbfafbd Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期一, 13 四月 2020 10:04:20 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/div' into div --- fanli/src/main/java/com/yeshi/fanli/dao/taobao/TLJBuyGoodsDao.java | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/dao/taobao/TLJBuyGoodsDao.java b/fanli/src/main/java/com/yeshi/fanli/dao/taobao/TLJBuyGoodsDao.java index 99f68e7..173cfca 100644 --- a/fanli/src/main/java/com/yeshi/fanli/dao/taobao/TLJBuyGoodsDao.java +++ b/fanli/src/main/java/com/yeshi/fanli/dao/taobao/TLJBuyGoodsDao.java @@ -56,6 +56,18 @@ } /** + * 鏍规嵁鍟嗗搧ID鍒犻櫎 + * + * @param auctionId + */ + public void deleteByAuctionId(Long auctionId) { + Query query = new Query(); + Criteria ca = Criteria.where("goods.auctionId").is(auctionId); + query.addCriteria(ca); + mongoTemplate.findAndRemove(query, TLJBuyGoods.class); + } + + /** * 鍑忕孩鍖呬釜鏁� * * @param id -- Gitblit v1.8.0