zhangnaisong
2023-06-25 8c15564b476b9abbfb1ca7fbf6b843e8af64accb
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"/>