From 6f237a10b5e1030e2a6d370ebc2f7828c72a0707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=83=A1=E6=A1=83=E4=BA=91?= <97791736@qq.com> Date: Sun, 3 Dec 2023 23:08:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=9F=8E-=E5=95=86=E5=93=81=E5=BA=93?= =?UTF-8?q?=E5=AD=98=E4=B8=BA=E9=9B=B6=E5=8F=AF=E4=BB=A5=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yudao/module/product/dal/mysql/spu/ProductSpuMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/mysql/spu/ProductSpuMapper.java b/yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/mysql/spu/ProductSpuMapper.java index 0448381fac..861ca475e8 100755 --- a/yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/mysql/spu/ProductSpuMapper.java +++ b/yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/mysql/spu/ProductSpuMapper.java @@ -63,7 +63,7 @@ public interface ProductSpuMapper extends BaseMapperX { // 分类 .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);