From 7fa0a141a3c88ca90c67c966260bf26f03f255da Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 07 Jun 2022 16:00:09 +0800 Subject: [PATCH] 20220606 --- src/main/resources/mapper/UserMapper.xml | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/main/resources/mapper/UserMapper.xml b/src/main/resources/mapper/UserMapper.xml index d417a2a..1ca8883 100644 --- a/src/main/resources/mapper/UserMapper.xml +++ b/src/main/resources/mapper/UserMapper.xml @@ -7,14 +7,22 @@ a.* FROM t_user a + left join t_belong b on a.belong_id = b.id <where> <if test="record != null" > <if test="record.username!=null"> and a.username like concat ('%',#{record.username},'%') </if> + <if test="record.belongId!=null"> + and a.belong_id = #{record.belongId} + </if> </if> </where> order by a.create_time desc </select> + <select id="selectByUserNameAndPassword" resultType="com.xcong.farmer.cms.modules.system.entity.UserEntity"> + SELECT a.* FROM t_user a where a.username = #{username} and a.password = #{password} + </select> + </mapper> \ No newline at end of file -- Gitblit v1.9.1