|
@@ -1090,14 +1090,14 @@
|
|
|
SELECT
|
|
|
COUNT( DISTINCT course_id, module_id, chapter_id, section_id )
|
|
|
FROM
|
|
|
- user_study_record c
|
|
|
+ user_study_record
|
|
|
WHERE
|
|
|
- AND c.current_status = 1
|
|
|
- AND c.grade_id = #{gradeId}
|
|
|
- AND c.order_goods_id = #{orderGoodsId}
|
|
|
- AND c.user_id = #{userId}
|
|
|
- and c.status = 1
|
|
|
- and c.goods_id = #{goodsId}
|
|
|
+ current_status = 1
|
|
|
+ AND grade_id = #{gradeId}
|
|
|
+ AND order_goods_id = #{orderGoodsId}
|
|
|
+ AND user_id = #{userId}
|
|
|
+ AND status = 1
|
|
|
+ AND goods_id = #{goodsId}
|
|
|
</select>
|
|
|
|
|
|
<select id="getOrderGoodsIds" parameterType="com.zhongzheng.modules.course.bo.CourseQueryBo" resultType="java.lang.Long">
|