소스 검색

修复state错误

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>