mingfu пре 1 месец
родитељ
комит
e5e8e58bf1
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      ie-system/src/main/resources/mapper/learn/LearnTestStudentMapper.xml

+ 2 - 2
ie-system/src/main/resources/mapper/learn/LearnTestStudentMapper.xml

@@ -39,8 +39,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         LEFT JOIN `b_busi_wish_universities` us ON SUBSTRING_INDEX(p.`direct_key`, '_', 1) = us.`id`
         <where>
             <if test="studentId != null "> and ts.`student_id` = #{studentId}</if>
-            <if test="status != null and status != 4"> and IF(e.`state` IS NULL, 2, e.`state`) &lt; 4</if>
-            <if test="status != null and status == 4"> and e.`state` &gt;= 4</if>
+            <if test="state != null and state != 4"> and IF(e.`state` IS NULL, 2, e.`state`) &lt; 4</if>
+            <if test="state != null and state == 4"> and e.`state` &gt;= 4</if>
         </where>
         ORDER BY ts.`create_time` DESC
     </select>