he2802 1 年之前
父节点
当前提交
101a7395f3
共有 1 个文件被更改,包括 9 次插入3 次删除
  1. 9 3
      zhongzheng-system/src/main/resources/mapper/modules/grade/ClassGradeMapper.xml

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

@@ -1353,9 +1353,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             AND u.realname  like concat('%', #{userName}, '%')
             ) >0
         </if>
-        <if test="classStatus != null and  classStatus!=2">
+        <if test="classStatus != null and  classStatus==0">
             AND g.class_status =  #{classStatus}
         </if>
+        <if test="classStatus != null and  classStatus==1">
+            AND g.class_status =  1 and g.class_end_time >= unix_timestamp(now())
+        </if>
         <if test="classStatus != null and  classStatus == 2 ">
             AND g.class_status =  1 and unix_timestamp(now()) > g.class_end_time
         </if>
@@ -1439,10 +1442,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             AND d.goods_name  like concat('%', #{searchKey}, '%')
             ) >0)
         </if>
-        <if test="classStatus != null and  classStatus!=2">
+        <if test="classStatus != null and  classStatus==0">
             AND g.class_status =  #{classStatus}
         </if>
-        <if test="classStatus != null and  classStatus ==2 ">
+        <if test="classStatus != null and  classStatus==1">
+            AND g.class_status =  1 and g.class_end_time >= unix_timestamp(now())
+        </if>
+        <if test="classStatus != null and  classStatus == 2 ">
             AND g.class_status =  1 and unix_timestamp(now()) > g.class_end_time
         </if>
         <if test="atFull != null and atFull !='' ">