瀏覽代碼

FIX:参与记录查询修改

Long 3 周之前
父節點
當前提交
998d3894d1
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      fs-service/src/main/resources/mapper/course/FsUserCourseMapper.xml

+ 6 - 0
fs-service/src/main/resources/mapper/course/FsUserCourseMapper.xml

@@ -130,11 +130,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 select count(log.log_id) as count
                 from fs_course_answer_logs log
                 where log.user_id = fu.user_id and log.video_id = fucv.video_id and log.is_right = 1
+                <if test="params.periodId != null">
+                    and log.period_id = #{params.periodId}
+                </if>
                 ) > 0
                 and (
                 select count(log.log_id) as count
                 from fs_course_red_packet_log log
                 where log.user_id = fu.user_id and log.video_id = fucv.video_id and log.status = 1
+                <if test="params.periodId != null">
+                    and log.period_id = #{params.periodId}
+                </if>
                 ) > 0
             </when>
             <when test="params.type == 1">