Ver código fonte

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

mingfu 2 dias atrás
pai
commit
86e9c82782

+ 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>