Browse Source

查找用户优先展示课程绑定的评卷老师

wangliang 2 years ago
parent
commit
63cb951d6a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      teachcloud-common/src/main/resources/mapper/SysUserMapper.xml

+ 5 - 1
teachcloud-common/src/main/resources/mapper/SysUserMapper.xml

@@ -429,7 +429,7 @@
         sur.user_id = su.id
         join sys_role sr on
         sr.id = sur.role_id
-        <where>
+        <where> 1 = 1
             <if test="schoolId != null and schoolId != ''">
                 and su.school_id = #{schoolId}
             </if>
@@ -439,6 +439,10 @@
                     #{item}
                 </foreach>
             </if>
+            and su.enable = 1
+            and so.enable = 1
+            and sur.enable = 1
+            and sr.enable = 1
         </where>
         group by
         su.id,