From b4b30760d4301a90b965db014b76207db8461ede Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Thu, 11 May 2023 14:18:30 +0800 Subject: [PATCH] 支付设置 --- src/main/resources/mapper/modules/MallMemberMapper.xml | 21 +++++++++++++++++++-- 1 files changed, 19 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/modules/MallMemberMapper.xml b/src/main/resources/mapper/modules/MallMemberMapper.xml index 9a6e4ed..2fbfae0 100644 --- a/src/main/resources/mapper/modules/MallMemberMapper.xml +++ b/src/main/resources/mapper/modules/MallMemberMapper.xml @@ -14,6 +14,7 @@ IFNULL(c.total_score,0) totalScore, IFNULL(c.voucher_cnt,0) voucherCnt, IFNULL(c.voucher_amount,0) voucherAmount, + IFNULL(c.voucher_fire_cnt,0) voucherFireCnt, d.description levelName FROM mall_member m left join mall_member a on m.referrer_id = a.invite_id @@ -23,6 +24,9 @@ <if test="record != null" > <if test="record.name!=null and record.name!=''"> and m.name like concat('%', #{record.name},'%') + </if> + <if test="record.accountLogin!=null and record.accountLogin!=''"> + and m.account_login like concat('%', #{record.accountLogin},'%') </if> <if test="record.account!=null and record.account!=''"> and ( @@ -84,7 +88,7 @@ <select id="selectTeamListByInviteId" resultType="cc.mrbird.febs.mall.vo.TeamListVo"> select a.id, - a.name, + a.account_login name, a.phone, a.invite_id, 2 isCurrent, @@ -163,6 +167,9 @@ left join data_dictionary_custom a on a.code = m.level <where> <if test="record != null" > + <if test="record.accountLogin!=null and record.accountLogin!=''"> + and m.account_login like concat('%', #{record.accountLogin},'%') + </if> <if test="record.name!=null and record.name!=''"> and m.name like concat('%', #{record.name},'%') </if> @@ -274,7 +281,7 @@ SELECT a.id,d.code levelCode FROM mall_member a LEFT JOIN data_dictionary_custom d on d.code = a.level - where a.id = #{id} and d.type = 'AGENT_LEVEL_REQUIRE' + where a.id = #{id} and d.type = 'AGENT_LEVEL' GROUP BY a.id </select> @@ -450,4 +457,14 @@ select * from mall_member where level = #{level} </select> + + <select id="selectByAccountLogin" resultType="cc.mrbird.febs.mall.entity.MallMember"> + select * from mall_member + where account_login = #{accountLogin} + </select> + + <select id="selectInfoByAccountLoginAndPwd" resultType="cc.mrbird.febs.mall.entity.MallMember"> + select * from mall_member + where account_login = #{accountLogin} and password = #{password} + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1