From d5c0d74f06a70a946f9c34c0ea922bf3b9b4dafe Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Fri, 21 Jul 2023 17:19:23 +0800 Subject: [PATCH] 订单支付后生成对应的课程单 --- src/main/resources/mapper/modules/MallMemberMapper.xml | 23 ++++++++++++++++++++++- 1 files changed, 22 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/modules/MallMemberMapper.xml b/src/main/resources/mapper/modules/MallMemberMapper.xml index 94ea777..44c4bdb 100644 --- a/src/main/resources/mapper/modules/MallMemberMapper.xml +++ b/src/main/resources/mapper/modules/MallMemberMapper.xml @@ -33,7 +33,7 @@ </if> </if> </where> - order by m.CREATED_TIME desc + GROUP BY m.id order by m.CREATED_TIME desc </select> <select id="getMallMemberInfoById" resultType="cc.mrbird.febs.mall.vo.MallMemberVo"> @@ -407,4 +407,25 @@ where a.open_id = #{openId} limit 1 </select> + <select id="findMallRollPerkInPage" resultType="cc.mrbird.febs.mall.entity.MallRollPerk"> + select * from mall_roll_perk + where member_id = #{record.memberId} + and roll_id = #{record.rollId} + <if test="record.state != null and record.state != ''"> + and state = #{record.state} + </if> + </select> + + <select id="findMallMemberClassInPage" resultType="cc.mrbird.febs.mall.entity.MallMemberClass"> + select * from mall_member_class + where member_id = #{record.memberId} + </select> + + <select id="findMallMemberHouseInPage" resultType="cc.mrbird.febs.mall.entity.MallMemberHouse"> + select * from mall_member_house + where member_id = #{record.memberId} + <if test="record.state != null and record.state != ''"> + and state = #{record.state} + </if> + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1