change 4 жил өмнө
parent
commit
10dd448eec

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

@@ -172,8 +172,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="className != null and className !='' ">
             AND g.class_name like concat('%', #{className}, '%')
         </if>
-        <if test="classStartTime != null and classStartTime !=0 ">
-            AND #{classStartTime} BETWEEN g.class_start_time and g.class_end_time or #{classEndTime} BETWEEN g.class_start_time and g.class_end_time
+        <if test="classStartTime != null or classEndTime != null ">
+            AND (#{classStartTime} BETWEEN g.class_start_time and g.class_end_time or #{classEndTime} BETWEEN g.class_start_time and g.class_end_time)
         </if>
         <if test="educationTypeId != null and educationTypeId !='' ">
             AND (