From 8c15564b476b9abbfb1ca7fbf6b843e8af64accb Mon Sep 17 00:00:00 2001 From: zhangnaisong <2434969829@qq.com> Date: 星期日, 25 六月 2023 17:28:47 +0800 Subject: [PATCH] 三一用户查询新增系统用户提交 --- ard-work/src/main/resources/mapper/sy/ArdSyUserMapper.xml | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/ard-work/src/main/resources/mapper/sy/ArdSyUserMapper.xml b/ard-work/src/main/resources/mapper/sy/ArdSyUserMapper.xml index ad9b0a6..75fab74 100644 --- a/ard-work/src/main/resources/mapper/sy/ArdSyUserMapper.xml +++ b/ard-work/src/main/resources/mapper/sy/ArdSyUserMapper.xml @@ -27,6 +27,23 @@ <if test="reserved2 != null and reserved2 != ''"> and reserved_2 = #{reserved2}</if> </where> </select> + + <select id="selectArdSyUserListWithSysUser" parameterType="ArdSyUser" resultType="java.util.Map"> + select su.user_name as "userName",coalesce(asu.id,'') as id, + coalesce(asu.sys_user_id,'') as "sysUserId", + coalesce(asu.user_id,'') as "userId", + coalesce(asu.password,'') as password, + coalesce(asu.reserved_1,'') as reserved1, + coalesce(asu.reserved_2,'') as reserved2 from ard_sy_user asu + right join sys_user su on asu.sys_user_id = su.user_id + <where> + <if test="sysUserId != null and sysUserId != ''"> and sys_user_id = #{sysUserId}</if> + <if test="userId != null and userId != ''"> and user_id = #{userId}</if> + <if test="password != null and password != ''"> and password = #{password}</if> + <if test="reserved1 != null and reserved1 != ''"> and reserved_1 = #{reserved1}</if> + <if test="reserved2 != null and reserved2 != ''"> and reserved_2 = #{reserved2}</if> + </where> + </select> <select id="selectArdSyUserById" parameterType="String" resultMap="ArdSyUserResult"> <include refid="selectArdSyUserVo"/> -- Gitblit v1.9.3