mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-30 03:01:53 +08:00
commit
f333aa38c1
@ -63,7 +63,7 @@ public interface ProductSpuMapper extends BaseMapperX<ProductSpuDO> {
|
|||||||
// 分类
|
// 分类
|
||||||
.inIfPresent(ProductSpuDO::getCategoryId, categoryIds);
|
.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)) {
|
if (ObjUtil.equal(pageReqVO.getRecommendType(), AppProductSpuPageReqVO.RECOMMEND_TYPE_HOT)) {
|
||||||
query.eq(ProductSpuDO::getRecommendHot, true);
|
query.eq(ProductSpuDO::getRecommendHot, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user