From 5b6bd2b10c8c87b658b888f4d0384aec3ed491ce Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 26 八月 2025 12:21:29 +0800
Subject: [PATCH] 代码提交

---
 ruoyi-project/src/main/resources/mapper/project/ServiceFundSharedMapper.xml |   25 ++++++++++++++++++++-----
 1 files changed, 20 insertions(+), 5 deletions(-)

diff --git a/ruoyi-project/src/main/resources/mapper/project/ServiceFundSharedMapper.xml b/ruoyi-project/src/main/resources/mapper/project/ServiceFundSharedMapper.xml
index 7878069..871bb2e 100644
--- a/ruoyi-project/src/main/resources/mapper/project/ServiceFundSharedMapper.xml
+++ b/ruoyi-project/src/main/resources/mapper/project/ServiceFundSharedMapper.xml
@@ -9,7 +9,7 @@
         <result property="infoid" column="InfoID"/>
         <result property="donorno" column="DonorNo"/>
         <result property="donorname" column="DonorName"/>
-        <result property="delflag" column="del_flag"/>
+        <result property="delFlag" column="del_flag"/>
         <result property="createBy" column="create_by"/>
         <result property="createTime" column="create_time"/>
         <result property="updateBy" column="update_by"/>
@@ -122,7 +122,7 @@
                riqi,
                bh,
                checkstatus,
-               applytime,
+               apply_time,
                performancetype
         from service_fund_shared
     </sql>
@@ -130,7 +130,7 @@
     <select id="getFundShareInfoById" resultType="com.ruoyi.project.domain.ServiceFundShared"
             resultMap="ServiceFundSharedResult">
         <include refid="selectServiceFundSharedVo"/>
-        where serfunid = #{fundid}
+        where serfunid = #{fundid} and del_flag=0
     </select>
 
     <select id="selectServiceFundSharedList" parameterType="ServiceFundShared" resultMap="ServiceFundSharedResult">
@@ -193,8 +193,23 @@
         SET del_flag = 1
         WHERE
         del_flag != 1
-        <if test="fundId != null"> and ID = #{fundId}</if>
-        <if test="serfunid != null"> and serfunid = #{serfunid}</if>
+        <if test="fundId != null">and ID = #{fundId}</if>
+        <if test="serfunid != null">and serfunid = #{serfunid}</if>
+
+    </update>
+
+
+    <update id="updateShareByfundid">
+        UPDATE service_fund_shared
+        SET
+        <if test="bh != null">bh = #{bh},</if>
+        <if test="riqi != null">riqi = #{riqi},</if>
+        <if test="zffs != null">zffs = #{zffs},</if>
+        update_time = sysdate()
+        WHERE
+        del_flag != 1
+        <if test="fundId != null">and ID = #{fundId}</if>
+        <if test="serfunid != null">and serfunid = #{serfunid}</if>
 
 
     </update>

--
Gitblit v1.9.3