|
|
@@ -84,40 +84,40 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
<select id="selectList" parameterType="com.zhongzheng.modules.order.bo.OrderQueryBo" resultMap="OrderResultVo">
|
|
|
SELECT
|
|
|
- o.*,
|
|
|
- g.goods_id,
|
|
|
- g.goods_name,
|
|
|
- g.year,
|
|
|
- g.cover_url,
|
|
|
- g.code,
|
|
|
- og.goods_price,
|
|
|
- og.rebuy_order_goods_id,
|
|
|
- og.order_goods_id,
|
|
|
- og.goods_real_price,
|
|
|
- og.status as order_goods_status,
|
|
|
- u.telphone,
|
|
|
- u.realname,
|
|
|
- u.id_card,
|
|
|
- cet.education_name,
|
|
|
- cpt.project_name,
|
|
|
- cb.business_name,
|
|
|
- s.school_name,
|
|
|
- m.category_name,
|
|
|
- og.goods_received,
|
|
|
- og.refund_status,
|
|
|
- og.pay_status,
|
|
|
- cgu.period_plush
|
|
|
+ o.*,
|
|
|
+ g.goods_id,
|
|
|
+ g.goods_name,
|
|
|
+ g.year,
|
|
|
+ g.cover_url,
|
|
|
+ g.code,
|
|
|
+ og.goods_price,
|
|
|
+ og.rebuy_order_goods_id,
|
|
|
+ og.order_goods_id,
|
|
|
+ og.goods_real_price,
|
|
|
+ og.status as order_goods_status,
|
|
|
+ u.telphone,
|
|
|
+ u.realname,
|
|
|
+ u.id_card,
|
|
|
+ cet.education_name,
|
|
|
+ cpt.project_name,
|
|
|
+ cb.business_name,
|
|
|
+ s.school_name,
|
|
|
+ m.category_name,
|
|
|
+ og.goods_received,
|
|
|
+ og.refund_status,
|
|
|
+ og.pay_status,
|
|
|
+ (select cgu.period_plush from class_grade_user cgu where cgu.grade_id = og.grade_id and cgu.user_id = o.user_id limit 1 ) period_plush
|
|
|
FROM
|
|
|
- `order` o
|
|
|
- LEFT JOIN order_goods og ON o.order_sn = og.order_sn
|
|
|
- LEFT JOIN goods g ON og.goods_id = g.goods_id
|
|
|
- LEFT JOIN `user` u ON o.user_id = u.user_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 school s ON s.id = g.school_id
|
|
|
- LEFT JOIN major m ON g.major_id = m.id
|
|
|
- LEFT JOIN class_grade_user cgu ON cgu.grade_id = og.grade_id
|
|
|
+ `order` o
|
|
|
+ LEFT JOIN order_goods og ON o.order_sn = og.order_sn
|
|
|
+ LEFT JOIN goods g ON og.goods_id = g.goods_id
|
|
|
+ LEFT JOIN `user` u ON o.user_id = u.user_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 school s ON s.id = g.school_id
|
|
|
+ LEFT JOIN major m ON g.major_id = m.id
|
|
|
+
|
|
|
WHERE 1=1
|
|
|
|
|
|
<if test="educationTypeId != null and educationTypeId != ''">
|