Browse Source

feat:六一活动排课

Joburgess 4 years ago
parent
commit
d709e25e6e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mec-biz/src/main/resources/config/mybatis/TeacherMapper.xml

+ 1 - 1
mec-biz/src/main/resources/config/mybatis/TeacherMapper.xml

@@ -943,7 +943,7 @@
             AND FIND_IN_SET(t.organ_id_,#{organId})
         </if>
         <if test="organId != null and includeFlowOrgan!=null and includeFlowOrgan">
-            AND (FIND_IN_SET(t.organ_id_,#{organId}) OR INTE_ARRAY(t.flow_organ_range_, #{organId}))
+            (CONCAT(',',t.organ_id_,',',IFNULL(t.flow_organ_range_,''),',') REGEXP CONCAT(',(',replace(#{organId},',','|'),'),'))
         </if>
         <if test="subjectIds != null">
             AND INTE_ARRAY(t.subject_id_,#{subjectIds})