Selaa lähdekoodia

fix(app): 修正订单类型查询条件

- 将查询条件中的 `o.order_type` 更改为 `opi.type`
- 确保筛选逻辑正确应用到订单产品信息表
wzq 3 viikkoa sitten
vanhempi
commit
ce2bdea777

+ 1 - 1
national-motion-module-system/national-motion-system-biz/src/main/java/org/jeecg/modules/system/app/mapper/xml/AppIsinMapper.xml

@@ -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>