教育训练处考试制证系统后端
“djh”
2025-03-11 be90c5ad7af7528872dd0eaeae6c419a5ceedbc3
exam-system/src/main/resources/mapper/pay/NonCoalPayStudentMapper.xml
@@ -19,6 +19,12 @@
        <result property="createTime" column="create_time"/>
        <result property="delFlag" column="del_flag"/>
        <result property="payType" column="pay_type"/>
        <result property="orderNo" column="order_no"/>
        <result property="orderId" column="order_id"/>
        <result property="fileData" column="file_data"/>
        <result property="payTime" column="pay_time"/>
        <result property="govPayStatus" column="gov_pay_status"/>
        <result property="train" column="train"/>
    </resultMap>
    <sql id="selectNonCoalPayStudentVo">
@@ -35,7 +41,13 @@
               create_by,
               create_time,
               del_flag,
               pay_type
               pay_type,
               order_no,
               order_id,
               file_data,
               pay_time,
               gov_pay_status,
               train
        from non_coal_pay_student
    </sql>
@@ -69,8 +81,11 @@
            <if test="idCard != null and idCard != ''">id_card,</if>
            <if test="phone != null and phone != ''">phone,</if>
            <if test="sex != null">sex,</if>
            <if test="govPayStatus!=null">gov_pay_status,</if>
            <if test="payCode != null">pay_code,</if>
            <if test="payType != null">pay_type,</if>
            <if test="orderNo != null and orderNo != '' ">order_no,</if>
            <if test="train != null and train != '' ">train,</if>
            <if test="payStatus != null">pay_status,</if>
            <if test="updateBy != null">update_by,</if>
            <if test="updateTime != null">update_time,</if>
@@ -85,8 +100,11 @@
            <if test="idCard != null and idCard != ''">#{idCard},</if>
            <if test="phone != null and phone != ''">#{phone},</if>
            <if test="sex != null">#{sex},</if>
            <if test="govPayStatus!=null">#{govPayStatus},</if>
            <if test="payCode != null">#{payCode},</if>
            <if test="payType != null">#{payType},</if>
            <if test="orderNo != null and orderNo != '' ">#{orderNo},</if>
            <if test="train != null and train != '' ">#{train},</if>
            <if test="payStatus != null">#{payStatus},</if>
            <if test="updateBy != null">#{updateBy},</if>
            <if test="updateTime != null">#{updateTime},</if>
@@ -99,8 +117,10 @@
    <update id="updateNonCoalPayStudentType">
        update non_coal_pay_student
        set pay_type  = 2,
            gov_pay_status = #{status},
            update_by = #{updateBy}
        where non_coal_pay_id = #{id}
          and pay_status = 0
    </update>
    <update id="updateNonCoalPayStudent" parameterType="NonCoalPayStudent">
        update non_coal_pay_student
@@ -110,6 +130,12 @@
            <if test="idCard != null and idCard != ''">id_card = #{idCard},</if>
            <if test="phone != null and phone != ''">phone = #{phone},</if>
            <if test="sex != null">sex = #{sex},</if>
            <if test="orderNo != null and orderNo != ''">order_no = #{orderNo},</if>
            <if test="orderNo != null and orderNo != ''">order_no = #{orderNo},</if>
            <if test="train != null and train != ''">train = #{train},</if>
            <if test="govPayStatus!=null">gov_pay_status=#{govPayStatus},</if>
            <if test="fileData != null and fileData != ''">file_data = #{fileData},</if>
            <if test="payTime != null">pay_time = #{payTime},</if>
            <if test="payType != null">pay_type = #{payType},</if>
            <if test="payCode != null">pay_code = #{payCode},</if>
            <if test="payStatus != null">pay_status = #{payStatus},</if>