|
@@ -341,7 +341,7 @@
|
|
and c.tenant_id=#{tenantId}
|
|
and c.tenant_id=#{tenantId}
|
|
</if>
|
|
</if>
|
|
and c.user_id=#{userId} and c.status = 1 and c.goods_id = #{goodsId}) as record_num,
|
|
and c.user_id=#{userId} and c.status = 1 and c.goods_id = #{goodsId}) as record_num,
|
|
- (SELECT count(*) from user_study_record usr where usr.user_id = #{userId} and usr.grade_id = #{gradeId} and usr.current_status = 1 and usr.course_id = r.course_id) as study_status,
|
|
|
|
|
|
+ (SELECT count(*) from user_study_record usr where usr.user_id = #{userId} and usr.grade_id = #{gradeId} and usr.order_goods_id = #{orderGoodsId} and usr.current_status = 1 and usr.course_id = r.course_id) as study_status,
|
|
(SELECT IFNULL(SUM(cs.duration_time),0) from (select DISTINCT c.section_id,c.course_id FROM user_study_record c where 1=1
|
|
(SELECT IFNULL(SUM(cs.duration_time),0) from (select DISTINCT c.section_id,c.course_id FROM user_study_record c where 1=1
|
|
and c.current_status=1
|
|
and c.current_status=1
|
|
<if test="gradeId != null and gradeId !=''">
|
|
<if test="gradeId != null and gradeId !=''">
|