|
@@ -188,7 +188,7 @@
|
|
SELECT SUM(route_amount_)
|
|
SELECT SUM(route_amount_)
|
|
FROM student_payment_order spo
|
|
FROM student_payment_order spo
|
|
LEFT JOIN student_payment_route_order spro ON spo.order_no_ = spro.order_no_
|
|
LEFT JOIN student_payment_route_order spro ON spo.order_no_ = spro.order_no_
|
|
- WHERE spro.route_organ_id_ = #{routeOrganId} AND spo.payment_channel_ IN
|
|
|
|
|
|
+ WHERE spro.route_organ_id_ = #{routeOrganId} AND spo.status_ IN ('SUCCESS','ING') AND spo.payment_channel_ IN
|
|
<foreach collection="paymentChannelEnumList" item="paymentChannel" open="(" close=")" separator=",">
|
|
<foreach collection="paymentChannelEnumList" item="paymentChannel" open="(" close=")" separator=",">
|
|
#{paymentChannel,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
#{paymentChannel,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
|
|
</foreach>
|
|
</foreach>
|
|
@@ -226,19 +226,19 @@
|
|
keyColumn="id" keyProperty="id">
|
|
keyColumn="id" keyProperty="id">
|
|
INSERT INTO student_payment_order
|
|
INSERT INTO student_payment_order
|
|
(id_, group_type_, user_id_, organ_id_, routing_organ_id_, type_, expect_amount_, actual_amount_, com_amount_,
|
|
(id_, group_type_, user_id_, organ_id_, routing_organ_id_, type_, expect_amount_, actual_amount_, com_amount_,
|
|
- per_amount_,
|
|
|
|
- balance_payment_amount_, remit_fee_, course_remit_fee_, trans_no_,
|
|
|
|
- status_, memo_, create_time_, update_time_, payment_channel_, payment_business_channel_,
|
|
|
|
- payment_account_no_, mer_nos_, order_no_, music_group_id_, class_group_id_, pay_time_)
|
|
|
|
|
|
+ per_amount_,
|
|
|
|
+ balance_payment_amount_, remit_fee_, course_remit_fee_, trans_no_,
|
|
|
|
+ status_, memo_, create_time_, update_time_, payment_channel_, payment_business_channel_,
|
|
|
|
+ payment_account_no_, mer_nos_, order_no_, music_group_id_, class_group_id_, pay_time_)
|
|
VALUES (#{id}, #{groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
VALUES (#{id}, #{groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
- #{userId}, #{organId}, #{routingOrganId},
|
|
|
|
- #{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
|
- #{expectAmount}, #{actualAmount}, #{comAmount}, #{perAmount}, #{balancePaymentAmount},
|
|
|
|
- #{remitFee}, #{courseRemitFee}, #{transNo},
|
|
|
|
- #{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, #{memo}, #{createTime}, now(),
|
|
|
|
- #{paymentChannel}, #{paymentBusinessChannel}, #{paymentAccountNo}, #{merNos}, #{orderNo},
|
|
|
|
- #{musicGroupId},
|
|
|
|
- #{classGroupId}, #{payTime})
|
|
|
|
|
|
+ #{userId}, #{organId}, #{routingOrganId},
|
|
|
|
+ #{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
|
|
|
|
+ #{expectAmount}, #{actualAmount}, #{comAmount}, #{perAmount}, #{balancePaymentAmount},
|
|
|
|
+ #{remitFee}, #{courseRemitFee}, #{transNo},
|
|
|
|
+ #{status,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}, #{memo}, #{createTime}, now(),
|
|
|
|
+ #{paymentChannel}, #{paymentBusinessChannel}, #{paymentAccountNo}, #{merNos}, #{orderNo},
|
|
|
|
+ #{musicGroupId},
|
|
|
|
+ #{classGroupId}, #{payTime})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|