xiaoyong931011
2022-06-13 36a143b19cc919c9a814d065029b2340ef7330d7
src/main/resources/mapper/UserMapper.xml
@@ -9,6 +9,10 @@
        t_user a
        left join t_belong b on a.belong_id = b.id
        <where>
            and a.id not in (
            SELECT b.user_id FROM t_user_role b
            WHERE b.role_id = ( SELECT id FROM t_role WHERE role_name = #{record.roleName})
            )
            <if test="record != null" >
                <if test="record.username!=null">
                    and a.username like concat ('%',#{record.username},'%')