From f9cb0f3f384279b2cbe87c35dde3ba573a0197f3 Mon Sep 17 00:00:00 2001
From: “djh” <“3298565835@qq.com”>
Date: Thu, 24 Apr 2025 16:17:25 +0800
Subject: [PATCH] 煤矿缴费修改
---
exam-system/src/main/resources/mapper/pay/CoalPayStudentMapper.xml | 46 ++++++++++++++++++++++++++++++++++++++++++----
1 files changed, 42 insertions(+), 4 deletions(-)
diff --git a/exam-system/src/main/resources/mapper/pay/CoalPayStudentMapper.xml b/exam-system/src/main/resources/mapper/pay/CoalPayStudentMapper.xml
index 4b45803..f7481ef 100644
--- a/exam-system/src/main/resources/mapper/pay/CoalPayStudentMapper.xml
+++ b/exam-system/src/main/resources/mapper/pay/CoalPayStudentMapper.xml
@@ -41,6 +41,7 @@
<if test="orderNo != null and orderNo != '' ">order_no,</if>
<if test="fileData!=null">file_data,</if>
<if test="govPayStatus!=null">gov_pay_status,</if>
+ <if test="train!=null and train!=''">train,</if>
<if test="createBy != null">create_by,</if>
<if test="createTime != null">create_time,</if>
<if test="updateBy != null">update_by,</if>
@@ -61,6 +62,7 @@
<if test="orderNo != null and orderNo != '' ">#{orderNo},</if>
<if test="fileData!=null">#{fileData},</if>
<if test="govPayStatus!=null">#{govPayStatus},</if>
+ <if test="train!=null and train!=''">#{train},</if>
<if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if>
@@ -100,15 +102,31 @@
update coal_pay_student
<trim prefix="SET" suffixOverrides=",">
<if test="payType != null">pay_type = #{payType},</if>
+ <if test="govPayStatus!=null">gov_pay_status=#{govPayStatus},</if>
</trim>
where coal_pay_id = #{coalPayId} and pay_status = 0
</update>
<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">
@@ -138,7 +156,27 @@
</select>
<select id="selectByIdcard" resultType="com.gkhy.exam.pay.entity.CoalPayStudent">
- <include refid="selectCoalPayStudentVo"></include>
- where id_card=#{idCard} and phone=#{phone} and del_flag = 0
+ select cps.id,
+ cps.coal_pay_id,
+ cps.name,
+ cps.id_card,
+ cps.phone,
+ cps.sex,
+ cps.pay_code,
+ cps.pay_status,
+ cps.pay_type,
+ cps.order_id,
+ cps.file_data,
+ cps.gov_pay_status,
+ cps.update_by,
+ cps.update_time,
+ cps.create_by,
+ cps.create_time,
+ cps.del_flag,
+ cps.order_no,
+ cps.pay_time
+ from coal_pay_student cps
+ left join coal_pay cp on cps.coal_pay_id = cp.id
+ where cps.id_card=#{idCard} and cps.phone=#{phone} and cps.del_flag = 0 and cp.del_flag = 0
</select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.2