|
@@ -48,7 +48,7 @@
|
|
-->
|
|
-->
|
|
INSERT INTO exam_registration_payment
|
|
INSERT INTO exam_registration_payment
|
|
(id_,exam_registration_id_,student_id_,examination_basic_id_,order_no_,trans_no_,mer_no_,trans_amount_,trans_status_,trans_successed_time_,create_time_,update_time_,tenant_id_)
|
|
(id_,exam_registration_id_,student_id_,examination_basic_id_,order_no_,trans_no_,mer_no_,trans_amount_,trans_status_,trans_successed_time_,create_time_,update_time_,tenant_id_)
|
|
- VALUES(#{id},#{examRegistrationId},#{studentId},#{examinationBasicId},#{orderNo},#{transNo},#{transAmount},#{transStatus},#{merNo},#{transSuccessedTime},NOW(),NOW(),#{tenantId})
|
|
|
|
|
|
+ VALUES(#{id},#{examRegistrationId},#{studentId},#{examinationBasicId},#{orderNo},#{transNo},#{merNo},#{transAmount},#{transStatus},#{transSuccessedTime},NOW(),NOW(),#{tenantId})
|
|
</insert>
|
|
</insert>
|
|
|
|
|
|
<!-- 根据主键查询一条记录 -->
|
|
<!-- 根据主键查询一条记录 -->
|
|
@@ -80,7 +80,7 @@
|
|
trans_no_ = #{transNo},
|
|
trans_no_ = #{transNo},
|
|
</if>
|
|
</if>
|
|
<if test="payChannel != null">
|
|
<if test="payChannel != null">
|
|
- pay_channel_ = #{pay_channel_},
|
|
|
|
|
|
+ pay_channel_ = #{payChannel},
|
|
</if>
|
|
</if>
|
|
<if test="merNo != null">
|
|
<if test="merNo != null">
|
|
mer_no_ = #{merNo},
|
|
mer_no_ = #{merNo},
|
|
@@ -141,4 +141,13 @@
|
|
LEFT JOIN exam_registration er ON er.id_ = erp.exam_registration_id_
|
|
LEFT JOIN exam_registration er ON er.id_ = erp.exam_registration_id_
|
|
WHERE order_no_ = #{orderNo}
|
|
WHERE order_no_ = #{orderNo}
|
|
</select>
|
|
</select>
|
|
|
|
+ <!-- 获取超时未支付的订单 -->
|
|
|
|
+ <select id="findOrdersOverTime" resultMap="ExamRegistrationPayment">
|
|
|
|
+ SELECT * FROM exam_registration_payment WHERE order_no_ IN
|
|
|
|
+ <foreach collection="orderNoList" item="orderNo" index="index" open="(" close=")" separator=",">
|
|
|
|
+ #{orderNo}
|
|
|
|
+ </foreach>
|
|
|
|
+ AND trans_status_=#{transStatus,typeHandler=com.keao.edu.common.dal.CustomEnumTypeHandler}
|
|
|
|
+ <![CDATA[ AND create_time_ <= ]]> #{beforeTime}
|
|
|
|
+ </select>
|
|
</mapper>
|
|
</mapper>
|