Joburgess пре 4 година
родитељ
комит
0d1a6446b3
1 измењених фајлова са 1 додато и 1 уклоњено
  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">
-            (CONCAT(',',t.organ_id_,',',IFNULL(t.flow_organ_range_,''),',') REGEXP CONCAT(',(',replace(#{organId},',','|'),'),'))
+            AND (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})