ludc
2023-08-30 7b36013a20c3113a2d66033371d289b8da678b29
Source/UBCS/ubcs-service/ubcs-user/src/main/resources/mapper/UserMapper.xml
@@ -39,11 +39,8 @@
            LEFT JOIN PL_SYS_USER_PWDSTRATEGY plup on plup.USER_ID=pou.ID
            LEFT JOIN PL_SYS_PWDSTRATEGY pss on pss.ID=plup.PWDSTRATEGY_ID
        WHERE is_deleted = 0
        <if test="tenantId!=null and tenantId != ''">
            and tenant_id = #{tenantId}
        </if>
        <if test="user.tenantId!=null and user.tenantId != ''">
            and tenant_id = #{user.tenantId}
            and pou.tenant_id = #{user.tenantId}
        </if>
        <if test="user.account!=null and user.account != ''">
            and account = #{user.account}
@@ -99,4 +96,18 @@
            where id = #{userId} and is_deleted = 0
    </select>
    <select id="getUserMap" resultType="map">
        SELECT
            PCR.ID as value,
            PCR.ACCOUNT as lable
        FROM
            PL_ORG_USER PCR
        WHERE
            instr(PCR.ROLE_ID,#{roleId}) > 0
        AND
            PCR.ID != #{userId}
        AND
            PCR.IS_DELETED = 0
    </select>
</mapper>