From e43cda28b7d5543fc306b1b12cb13c0fd8c0d688 Mon Sep 17 00:00:00 2001 From: wangw <1594593906@qq.com> Date: Thu, 11 Dec 2025 14:05:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/MkPointsGoodsMapper.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cash-service/market-service/src/main/resources/mapper/MkPointsGoodsMapper.xml b/cash-service/market-service/src/main/resources/mapper/MkPointsGoodsMapper.xml index 7d1ecc230..0b7c5dd8e 100644 --- a/cash-service/market-service/src/main/resources/mapper/MkPointsGoodsMapper.xml +++ b/cash-service/market-service/src/main/resources/mapper/MkPointsGoodsMapper.xml @@ -8,13 +8,15 @@ select goods.*, count(record.id) as boughtCount from mk_points_goods goods left join mk_points_goods_record record - on record.points_goods_id = goods.id and record.user_id = #{userId} and record.status != '已退款' and record.is_del = 0 + on record.points_goods_id = goods.id and record.user_id = #{userId} and record.status != '已退款' and + record.is_del = 0 where goods.shop_id = #{shopId} and goods.del_flag = 0 and goods.status = 1 and goods.goods_category = #{goodsCategory} + GROUP BY goods.id HAVING goods.id IS NOT NULL order by goods.sort desc, goods.id desc