Browse Source

selectone 修复

sj
zhanyunjiu 2 years ago
parent
commit
0e55d4f4f8
  1. 2
      zsw-bxg/src/main/java/co/yixiang/modules/activity/service/impl/YxStoreVisitServiceImpl.java

2
zsw-bxg/src/main/java/co/yixiang/modules/activity/service/impl/YxStoreVisitServiceImpl.java

@ -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)) {

Loading…
Cancel
Save