|
@@ -418,6 +418,41 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
ORDER BY og.create_time DESC
|
|
|
</select>
|
|
|
|
|
|
+ <select id="listUserVideoLive" parameterType="com.zhongzheng.modules.goods.bo.GoodsQueryBo" resultMap="OrderGoodsResultVo">
|
|
|
+ SELECT
|
|
|
+ g.*,
|
|
|
+ cet.education_name,
|
|
|
+ cpt.project_name,
|
|
|
+ cb.business_name,
|
|
|
+ o.user_id,
|
|
|
+ og.create_time as order_create_time,
|
|
|
+ og.service_start_time,
|
|
|
+ og.service_end_time,
|
|
|
+ og.order_goods_id,
|
|
|
+ og.grade_id
|
|
|
+ FROM
|
|
|
+ order_goods og
|
|
|
+ LEFT JOIN goods g on g.goods_id =og.goods_id
|
|
|
+ LEFT JOIN course_education_type cet ON g.education_type_id = cet.id
|
|
|
+ LEFT JOIN course_project_type cpt ON g.project_id = cpt.id
|
|
|
+ LEFT JOIN course_business cb ON g.business_id = cb.id
|
|
|
+ LEFT JOIN `order` o on o.order_sn = og.order_sn
|
|
|
+ WHERE
|
|
|
+ 1 = 1
|
|
|
+ AND g.goods_type in (1,6)
|
|
|
+ AND o.user_id=#{userId}
|
|
|
+ AND og.`status` =1
|
|
|
+ and og.pay_status in (2,3,4)
|
|
|
+ AND og.refund_status in (0,3,1)
|
|
|
+ <if test="educationTypeId != null and educationTypeId != ''">
|
|
|
+ AND g.education_type_id = #{educationTypeId}
|
|
|
+ </if>
|
|
|
+ <if test="businessId != null and businessId != ''">
|
|
|
+ AND g.business_id = #{businessId}
|
|
|
+ </if>
|
|
|
+ ORDER BY og.create_time DESC
|
|
|
+ </select>
|
|
|
+
|
|
|
|
|
|
<select id="listUserSubjectGoods" parameterType="com.zhongzheng.modules.goods.bo.GoodsQueryBo" resultMap="OrderGoodsResultVo">
|
|
|
SELECT
|