소스 검색

fix 系统选新班

he2802 3 년 전
부모
커밋
e26f62455b
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      zhongzheng-system/src/main/resources/mapper/modules/grade/ClassGradeMapper.xml

+ 2 - 2
zhongzheng-system/src/main/resources/mapper/modules/grade/ClassGradeMapper.xml

@@ -330,10 +330,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             AND (SELECT COUNT(cgde.grade_id) FROM class_grade cgde where cgde.grade_id = cg.grade_id and (unix_timestamp(now()) < cgde.class_end_time or cgde.class_start_time is null)) =0
             AND (SELECT COUNT(cgde.grade_id) FROM class_grade cgde where cgde.grade_id = cg.grade_id and (unix_timestamp(now()) < cgde.class_end_time or cgde.class_start_time is null)) =0
         </if>
         </if>
         <if test="studyCountMore != null and studyCountMore == 1 ">
         <if test="studyCountMore != null and studyCountMore == 1 ">
-            AND og.study_count > 1
+            AND og.study_count > 0
         </if>
         </if>
         <if test="studyCountMore != null and studyCountMore == 0 ">
         <if test="studyCountMore != null and studyCountMore == 0 ">
-            AND og.study_count = 1
+            AND og.study_count = 0
         </if>
         </if>
         order by cgu.create_time desc
         order by cgu.create_time desc
     </select>
     </select>