From 076f5a4f0a7c5a4d3a6d3a1a61ff96a0091e3320 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Sat, 06 May 2023 15:04:21 +0800 Subject: [PATCH] 星级补贴逻辑修改 --- src/main/resources/mapper/modules/MallMemberMapper.xml | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/modules/MallMemberMapper.xml b/src/main/resources/mapper/modules/MallMemberMapper.xml index 9a6e4ed..30011e0 100644 --- a/src/main/resources/mapper/modules/MallMemberMapper.xml +++ b/src/main/resources/mapper/modules/MallMemberMapper.xml @@ -24,6 +24,9 @@ <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 ( m.phone like concat('%', #{record.account},'%') @@ -163,6 +166,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> @@ -450,4 +456,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