liusheng
16 小时以前 5b6bd2b10c8c87b658b888f4d0384aec3ed491ce
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"/>
@@ -42,6 +42,7 @@
        <result property="deptmentname" column="DeptmentName"/>
        <result property="opochecker" column="OPOchecker"/>
        <result property="finvicepresident" column="FinVicePresident"/>
        <result property="president" column="president"/>
        <result property="busvicepresident" column="BusVicePresident"/>
        <result property="officedirector" column="OfficeDirector"/>
        <result property="financedirector" column="FinanceDirector"/>
@@ -58,6 +59,10 @@
        <result property="fileid" column="fileid"/>
        <result property="zffs" column="zffs"/>
        <result property="riqi" column="riqi"/>
        <result property="bh" column="bh"/>
        <result property="checkstatus" column="checkstatus"/>
        <result property="performancetype" column="performancetype"/>
        <result property="applyTime" column="apply_time"/>
    </resultMap>
    <sql id="selectServiceFundSharedVo">
@@ -97,6 +102,7 @@
               DeptmentName,
               OPOchecker,
               FinVicePresident,
               president,
               BusVicePresident,
               OfficeDirector,
               FinanceDirector,
@@ -113,14 +119,18 @@
               fileid,
               serfunid,
               zffs,
               riqi
               riqi,
               bh,
               checkstatus,
               apply_time,
               performancetype
        from service_fund_shared
    </sql>
    <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">
@@ -181,7 +191,26 @@
    <update id="delfundsharedInfoById">
        UPDATE service_fund_shared
        SET del_flag = 1
        WHERE ID = #{fundId}
          and del_flag != 1
        WHERE
        del_flag != 1
        <if test="fundId != null">and ID = #{fundId}</if>
        <if test="serfunid != null">and serfunid = #{serfunid}</if>
    </update>
</mapper>
    <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>
</mapper>