From b4dff0461d20fe6890eae72b454068c08d38ea02 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Fri, 17 Jun 2022 16:58:42 +0800 Subject: [PATCH] 20220528 --- src/main/resources/mapper/modules/MallMemberMapper.xml | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mapper/modules/MallMemberMapper.xml b/src/main/resources/mapper/modules/MallMemberMapper.xml index 5ce313a..a70bd00 100644 --- a/src/main/resources/mapper/modules/MallMemberMapper.xml +++ b/src/main/resources/mapper/modules/MallMemberMapper.xml @@ -3,7 +3,7 @@ <mapper namespace="cc.mrbird.febs.mall.mapper.MallMemberMapper"> <select id="selectMallMemberListInPage" resultType="cc.mrbird.febs.mall.entity.MallMember"> - SELECT m.*,a.name referrerName,IFNULL(c.balance,0) balance,IFNULL(c.score,0) score,IFNULL(c.prize_score,0) prizeScore + SELECT m.*,a.name referrerName,IFNULL(c.balance,0) balance,IFNULL(c.score,0) score,IFNULL(c.prize_score,0) prizeScore,IFNULL(c.commission,0) commission ,d.description levelName FROM mall_member m left join mall_member a on m.referrer_id = a.invite_id @@ -27,6 +27,9 @@ </if> <if test="record.accountType != null" > and m.account_type = #{record.accountType} + </if> + <if test="record.level!=null and record.level!=''"> + and m.level=#{record.level} </if> </if> </where> @@ -392,4 +395,9 @@ </if> </where> </select> + + <select id="selectMemberWithLevel" resultType="cc.mrbird.febs.mall.entity.MallMember"> + select * from mall_member + where level=#{level} + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1