wangliang 2 vuotta sitten
vanhempi
commit
08d0900f6a
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      teachcloud-common/src/main/resources/mapper/SysRoleMapper.xml

+ 3 - 0
teachcloud-common/src/main/resources/mapper/SysRoleMapper.xml

@@ -75,5 +75,8 @@
         union
         <include refid="Base_Column_List" /> join t_school_role tsr on tsr.role_id = t.id
         where t.default_role = 1 and t.type <![CDATA[ <> ]]> 'ADMIN'
+            <if test="schoolId != null and schoolId != ''">
+                and tsr.school_id = #{schoolId}
+            </if>
     </select>
 </mapper>