- 将查询条件中的 `o.order_type` 更改为 `opi.type` - 确保筛选逻辑正确应用到订单产品信息表
@@ -46,7 +46,7 @@
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
<where>
- i.isin_status = 1 and o.order_type != 0
+ i.isin_status = 1 and opi.type != 0
<if test="userId != null and userId != ''">
and c.user_id = #{userId}
</if>