教育训练处考试制证系统后端
“djh”
2025-02-20 4bfab467a5645b9b0595ed4e2ee5970f0a449446
exam-system/src/main/resources/mapper/pay/CoalPayStudentMapper.xml
@@ -106,9 +106,24 @@
    <update id="updateByCoalPayIdAndStatus">
        update coal_pay_student
        <trim prefix="SET" suffixOverrides=",">
            <if test="payType != null">pay_type = #{payType},</if>
            <if test="payCode != null">pay_code = #{payCode},</if>
            <if test="orderId!=null">order_id=#{orderId},</if>
            <if test="orderNo!=null">order_no = #{orderNo},</if>
            <if test="fileData!=null">file_data=#{fileData},</if>
            <if test="govPayStatus!=null">gov_pay_status=#{govPayStatus},</if>
        </trim>
        where coal_pay_id = #{coalPayId} and pay_status = 0
        where coal_pay_id = #{coalPayId} and pay_status = 0 and pay_type = 2
    </update>
    <update id="updateByIdAndPayType">
        update coal_pay_student
        <trim prefix="SET" suffixOverrides=",">
            <if test="payCode != null">pay_code = #{payCode},</if>
            <if test="orderId!=null">order_id=#{orderId},</if>
            <if test="orderNo!=null">order_no = #{orderNo},</if>
            <if test="fileData!=null">file_data=#{fileData},</if>
            <if test="govPayStatus!=null">gov_pay_status=#{govPayStatus},</if>
        </trim>
        where id = #{id} and pay_status = 0 and pay_type = 1
    </update>
    <select id="selectByCoalPayId" resultType="com.gkhy.exam.pay.entity.CoalPayStudent">