selectone 修复

This commit is contained in:
zhanyunjiu
2022-12-07 17:40:28 +08:00
parent 6b18623b7f
commit 0e55d4f4f8
@@ -93,7 +93,7 @@ public class YxStoreVisitServiceImpl extends BaseServiceImpl<YxStoreVisitMapper,
public void addStoreVisit(Long uid, Long productId) {
LambdaQueryWrapper<YxStoreVisit> 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)) {