|
@@ -46,7 +46,7 @@
|
|
|
LEFT JOIN nm_order_pro_info opi ON i.order_pro_info_id = opi.id
|
|
LEFT JOIN nm_order_pro_info opi ON i.order_pro_info_id = opi.id
|
|
|
LEFT JOIN nm_courses c on c.id = opi.product_id
|
|
LEFT JOIN nm_courses c on c.id = opi.product_id
|
|
|
<where>
|
|
<where>
|
|
|
- i.isin_status = 1 and o.order_type != 0
|
|
|
|
|
|
|
+ i.isin_status = 1 and opi.type != 0
|
|
|
<if test="userId != null and userId != ''">
|
|
<if test="userId != null and userId != ''">
|
|
|
and c.user_id = #{userId}
|
|
and c.user_id = #{userId}
|
|
|
</if>
|
|
</if>
|