浏览代码

错题本查询时间是按更新时间查询,不按创建时间

mingfu 2 天之前
父节点
当前提交
86e9c82782
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      ie-system/src/main/resources/mapper/learn/LearnWrongBookMapper.xml

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

@@ -171,8 +171,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <where>
             wb.`student_id` = #{studentId} AND q.`qtpye` IN ('判断题', '单选题', '选择题','单项选择','单项选择题','多选题')
             <if test="subjectId != null "> and wb.`subject_id` = #{subjectId}</if>
-            <if test="start != null "> and date(wb.`created_time`) &gt;= date(#{start})</if>
-            <if test="end != null "> and date(wb.`created_time`) &lt;= date(#{end})</if>
+            <if test="start != null "> and date(wb.`updated_time`) &gt;= date(#{start})</if>
+            <if test="end != null "> and date(wb.`updated_time`) &lt;= date(#{end})</if>
         </where>
         order by wb.`created_time` desc
     </select>