Skip to content

Commit

Permalink
!777 商城模块,商品库存为零也可显示商品信息
Browse files Browse the repository at this point in the history
Merge pull request !777 from 奕泽云/master
  • Loading branch information
YunaiV authored and gitee-org committed Dec 6, 2023
2 parents 9a898a8 + 6f237a1 commit f333aa3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ default PageResult<ProductSpuDO> selectPage(AppProductSpuPageReqVO pageReqVO, Se
// 分类
.inIfPresent(ProductSpuDO::getCategoryId, categoryIds);
// 上架状态 且有库存
query.eq(ProductSpuDO::getStatus, ProductSpuStatusEnum.ENABLE.getStatus()).gt(ProductSpuDO::getStock, 0);
query.eq(ProductSpuDO::getStatus, ProductSpuStatusEnum.ENABLE.getStatus());
// 推荐类型的过滤条件
if (ObjUtil.equal(pageReqVO.getRecommendType(), AppProductSpuPageReqVO.RECOMMEND_TYPE_HOT)) {
query.eq(ProductSpuDO::getRecommendHot, true);
Expand Down

0 comments on commit f333aa3

Please sign in to comment.