|
@@ -155,6 +155,7 @@
|
|
|
</resultMap>
|
|
|
<sql id="queryStudentPaymentOrdersSql">
|
|
|
<where>
|
|
|
+ spo.type_ IN ('GOODS_SELL','APPLY','SUBJECT_CHANGE') AND so.id_ IS NOT NULL
|
|
|
<if test="status != null">
|
|
|
AND spo.status_ = #{status}
|
|
|
</if>
|
|
@@ -178,6 +179,7 @@
|
|
|
<select id="countStudentPaymentOrders" resultType="java.lang.Integer">
|
|
|
SELECT COUNT(DISTINCT spo.id_)
|
|
|
FROM student_payment_order spo
|
|
|
+ LEFT JOIN sell_order so ON so.order_no_ = spo.order_no_
|
|
|
<include refid="queryStudentPaymentOrdersSql"/>
|
|
|
</select>
|
|
|
</mapper>
|