|
@@ -91,12 +91,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
`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 = o.user_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 != ''">
|
|
|
AND g.education_type_id = #{educationTypeId}
|
|
|
</if>
|
|
@@ -124,6 +125,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="refundStatus != null">
|
|
|
AND og.refund_status = #{refundStatus}
|
|
|
</if>
|
|
|
+ <if test="goodsType != null">
|
|
|
+ AND g.goods_type = #{goodsType}
|
|
|
+ </if>
|
|
|
ORDER BY o.order_id DESC
|
|
|
</select>
|
|
|
|