数据源分配用户查询BUG解决

master
wws 1 year ago
parent 816efb1f5a
commit 62ee2492fc

@ -66,8 +66,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join sys_user_datasource sud on sd.id = sud.datasource_id left join sys_user_datasource sud on sd.id = sud.datasource_id
left join sys_user su on su.user_id = sud.user_id left join sys_user su on su.user_id = sud.user_id
where sud.user_id is not null where sud.user_id is not null
<if test="nickName != null and nickName != ''"> <if test="userName != null and userName != ''">
AND su.nick_name like concat('%', #{nickName}, '%') AND su.nick_name like concat('%', #{userName}, '%')
</if> </if>
<if test="datasourceId != null and datasourceId != ''"> <if test="datasourceId != null and datasourceId != ''">
AND sd.id = #{datasourceId} AND sd.id = #{datasourceId}

Loading…
Cancel
Save