From 0e55d4f4f8eab00b4a4b79f9d38633871d9a05fa Mon Sep 17 00:00:00 2001 From: zhanyunjiu <787952492@qq.com> Date: Wed, 7 Dec 2022 17:40:28 +0800 Subject: [PATCH] =?UTF-8?q?selectone=20=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/activity/service/impl/YxStoreVisitServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsw-bxg/src/main/java/co/yixiang/modules/activity/service/impl/YxStoreVisitServiceImpl.java b/zsw-bxg/src/main/java/co/yixiang/modules/activity/service/impl/YxStoreVisitServiceImpl.java index dc3f31e9..b1d1d0e6 100644 --- a/zsw-bxg/src/main/java/co/yixiang/modules/activity/service/impl/YxStoreVisitServiceImpl.java +++ b/zsw-bxg/src/main/java/co/yixiang/modules/activity/service/impl/YxStoreVisitServiceImpl.java @@ -93,7 +93,7 @@ public class YxStoreVisitServiceImpl extends BaseServiceImpl wrapper = new LambdaQueryWrapper<>(); - wrapper.eq(YxStoreVisit::getUid, uid).eq(YxStoreVisit::getProductId, productId); + wrapper.eq(YxStoreVisit::getUid, uid).eq(YxStoreVisit::getProductId, productId).last("limit 1"); YxStoreVisit storeVisit = this.baseMapper.selectOne(wrapper); if (ObjectUtil.isNull(storeVisit)) {