From c619972c50577bb699be6ee099b5e2741882fabb Mon Sep 17 00:00:00 2001 From: KKSU <15274802129@163.com> Date: Wed, 27 Dec 2023 16:15:59 +0800 Subject: [PATCH] 直推奖励,冻结的用户,则直推奖励销毁,用户未冻结才能领取成功 --- src/main/resources/mapper/modules/MallGoodsCategoryMapper.xml | 20 ++++++++------------ 1 files changed, 8 insertions(+), 12 deletions(-) diff --git a/src/main/resources/mapper/modules/MallGoodsCategoryMapper.xml b/src/main/resources/mapper/modules/MallGoodsCategoryMapper.xml index f551b23..42fce55 100644 --- a/src/main/resources/mapper/modules/MallGoodsCategoryMapper.xml +++ b/src/main/resources/mapper/modules/MallGoodsCategoryMapper.xml @@ -99,18 +99,14 @@ <select id="selectAllCategoryListByIsApp" resultMap="mallGoodsCategoryVoMap"> - select + SELECT a.id, - a.name, - a.image, - a.parent_id, - b.id child_id, - b.name child_name, - b.parent_id child_parent_id - from mall_goods_category a - left join mall_goods_category b on a.id=b.parent_id - where a.parent_id = 0 - and a.is_app = #{isApp} - order by a.index_num asc + a. NAME, + a.image + FROM + mall_goods_category a + WHERE a.is_app = #{isApp} + ORDER BY + a.index_num ASC </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1