From 3bf782ceb9411b81e5c03cadb73751f429e4051a Mon Sep 17 00:00:00 2001 From: “djh” <“3298565835@qq.com”> Date: 星期二, 18 二月 2025 16:28:33 +0800 Subject: [PATCH] 煤矿缴费修改 --- exam-system/src/main/resources/mapper/pay/CoalPayStudentMapper.xml | 12 +++++++----- 1 files changed, 7 insertions(+), 5 deletions(-) diff --git a/exam-system/src/main/resources/mapper/pay/CoalPayStudentMapper.xml b/exam-system/src/main/resources/mapper/pay/CoalPayStudentMapper.xml index fddcd40..1f0eecd 100644 --- a/exam-system/src/main/resources/mapper/pay/CoalPayStudentMapper.xml +++ b/exam-system/src/main/resources/mapper/pay/CoalPayStudentMapper.xml @@ -4,7 +4,7 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="com.gkhy.exam.pay.mapper.CoalPayStudentMapper"> <sql id="selectCoalPayStudentVo"> - select id, coal_pay_id, name, id_card, phone, sex, pay_code, pay_status,pay_type,order_id,file_data,gov_pay_status, update_by, update_time, create_by, create_time, del_flag from coal_pay_student + select id, coal_pay_id, name, id_card, phone, sex, pay_code, pay_status,pay_type,order_id,order_no,file_data,gov_pay_status, update_by, update_time, create_by, create_time, del_flag from coal_pay_student </sql> <insert id="insertCoalPayStudent"> insert into coal_pay_student @@ -19,6 +19,7 @@ <if test="payStatus != null">pay_status,</if> <if test="payType != null">pay_type,</if> <if test="orderId!=null">order_id,</if> + <if test="orderNo!=null">order_no,</if> <if test="fileData!=null">file_data,</if> <if test="govPayStatus!=null">gov_pay_status,</if> <if test="createBy != null">create_by,</if> @@ -38,6 +39,7 @@ <if test="payStatus != null">#{payStatus},</if> <if test="payType != null">#{payType},</if> <if test="orderId!=null">#{orderId},</if> + <if test="orderNo!=null">#{orderNo},</if> <if test="fileData!=null">#{fileData},</if> <if test="govPayStatus!=null">#{govPayStatus},</if> <if test="createBy != null">#{createBy},</if> @@ -66,6 +68,7 @@ <if test="payCode != null">pay_code = #{payCode},</if> <if test="payStatus != null">pay_status = #{payStatus},</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> <if test="updateBy != null">update_by = #{updateBy},</if> @@ -83,10 +86,9 @@ </update> <update id="updateByCoalPayIdAndStatus"> update coal_pay_student - <trim prefix="SET" suffixOverrides=","> - <if test="payType != null">pay_type = #{payType},</if> - </trim> - where coal_pay_id = #{coalPayId} and pay_status = 0 + set order_id = #{orderId},order_no=#{orderNo}, + gov_pay_status = #{govPayStatus},pay_code = #{payCode} + where coal_pay_id = #{coalPayId} and pay_status = 0 and pay_type = 2 </update> <select id="selectByCoalPayId" resultType="com.gkhy.exam.pay.entity.CoalPayStudent"> -- Gitblit v1.9.2