Pre Merge pull request !1122 from yuannuoxin/N/A

This commit is contained in:
yuannuoxin 2025-03-15 12:51:09 +00:00 committed by Gitee
commit a6a37b3241
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,9 @@ public interface ProductBrowseHistoryMapper extends BaseMapperX<ProductBrowseHis
default ProductBrowseHistoryDO selectByUserIdAndSpuId(Long userId, Long spuId) {
return selectOne(new LambdaQueryWrapperX<ProductBrowseHistoryDO>()
.eq(ProductBrowseHistoryDO::getUserId, userId)
.eq(ProductBrowseHistoryDO::getSpuId, spuId));
.eq(ProductBrowseHistoryDO::getSpuId, spuId)
.last(" limit 1 ")
);
}
default PageResult<ProductBrowseHistoryDO> selectPage(ProductBrowseHistoryPageReqVO reqVO) {