From f2b5d3f2d8a40ebc568bcba296f4a38d85eeb107 Mon Sep 17 00:00:00 2001
From: heheng <heheng@123456>
Date: Wed, 05 Feb 2025 13:23:16 +0800
Subject: [PATCH] 增加查询是否生成财政缴款码
---
exam-system/src/main/resources/mapper/pay/CoalPayStudentMapper.xml | 26 ++++++++++++++++++++++----
1 files changed, 22 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 e7185fe..fddcd40 100644
--- a/exam-system/src/main/resources/mapper/pay/CoalPayStudentMapper.xml
+++ b/exam-system/src/main/resources/mapper/pay/CoalPayStudentMapper.xml
@@ -70,11 +70,23 @@
<if test="govPayStatus!=null">gov_pay_status=#{govPayStatus},</if>
<if test="updateBy != null">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
- <if test="createBy != null">create_by = #{createBy},</if>
- <if test="createTime != null">create_time = #{createTime},</if>
<if test="delFlag != null">del_flag = #{delFlag},</if>
</trim>
where id = #{id}
+ </update>
+ <update id="updateByCoalPayId">
+ 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
+ </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
</update>
<select id="selectByCoalPayId" resultType="com.gkhy.exam.pay.entity.CoalPayStudent">
@@ -85,8 +97,14 @@
<select id="selectByCoalPayIdAndPayStatus" resultType="com.gkhy.exam.pay.entity.CoalPayStudent">
<include refid="selectCoalPayStudentVo"></include>
- where coal_pay_id = #{id} and pay_status = #{status}
- and del_flag =0
+ <where>
+ <if test="status == 0">
+ and pay_type = 2
+ </if>
+ and coal_pay_id = #{id}
+ and pay_status = #{status}
+ and del_flag =0
+ </where>
</select>
<select id="selectByIds" resultType="com.gkhy.exam.pay.entity.CoalPayStudent">
--
Gitblit v1.9.2