Explorar o código

角色列表筛选

%!s(int64=6) %!d(string=hai) anos
pai
achega
844ee260cf
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      cloud-model/src/main/resources/mapper/UserMapper.xml

+ 1 - 0
cloud-model/src/main/resources/mapper/UserMapper.xml

@@ -58,6 +58,7 @@
         LEFT JOIN tb_role r
         ON r.`id` = u.`role_type`
         <where>
+            u.parent_id = #{user.id}
             <if test="flag==0 and keyName != '' and keyName !=null">
                 u.username like concat('%',#{keyName},'%')
             </if>