|
|
@@ -97,6 +97,33 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
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
|
|
|
+ <if test="educationTypeId != null and educationTypeId != ''">
|
|
|
+ AND g.education_type_id = #{educationTypeId}
|
|
|
+ </if>
|
|
|
+ <if test="businessId != null and businessId != ''">
|
|
|
+ AND g.business_id = #{businessId}
|
|
|
+ </if>
|
|
|
+ <if test="schoolId != null and schoolId != ''">
|
|
|
+ AND g.school_id = #{schoolId}
|
|
|
+ </if>
|
|
|
+ <if test="majorId != null and majorId != ''">
|
|
|
+ AND g.major_id = #{majorId}
|
|
|
+ </if>
|
|
|
+ <if test="orderStatus != null">
|
|
|
+ AND o.order_status = #{orderStatus}
|
|
|
+ </if>
|
|
|
+ <if test="startTime != null">
|
|
|
+ AND o.create_time >= #{startTime}
|
|
|
+ </if>
|
|
|
+ <if test="endTime != null">
|
|
|
+ AND #{endTime} >= o.create_time
|
|
|
+ </if>
|
|
|
+ <if test="payStatus != null">
|
|
|
+ AND og.pay_status = #{payStatus}
|
|
|
+ </if>
|
|
|
+ <if test="refundStatus != null">
|
|
|
+ AND og.refund_status = #{refundStatus}
|
|
|
+ </if>
|
|
|
ORDER BY o.order_id DESC
|
|
|
</select>
|
|
|
|