Jelajahi Sumber

FIX:参与记录查询修改

Long 3 minggu lalu
induk
melakukan
998d3894d1

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