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