yxh
8 小时以前 e61966a89350cf11940d5bd538a5dda06cb6b437
ruoyi-project/src/main/resources/mapper/project/ServiceFundMapper.xml
@@ -51,6 +51,10 @@
        <result property="uploadtime" column="uploadtime"/>
        <result property="flowlevel" column="FlowLevel"/>
        <result property="pretaxcost" column="PretaxCost"/>
        <result property="vatCost" column="vat_cost"/>
        <result property="cityTaxCost" column="city_tax_cost"/>
        <result property="laborPretaxCost" column="labor_pretax_cost"/>
        <result property="taxVersion" column="tax_version"/>
        <result property="taxedcost" column="TaxedCost"/>
        <result property="backflowlevel" column="backFlowLevel"/>
        <result property="zffs" column="zffs"/>
@@ -87,6 +91,10 @@
               UnitNo,
               UnitUserNo,
               PretaxCost,
               vat_cost,
               city_tax_cost,
               labor_pretax_cost,
               tax_version,
               TaxedCost,
               Phone,
               AnnexBankCard,
@@ -142,9 +150,13 @@
        where del_flag = '0'
        <if test="donorno != null  and donorno != ''">and DonorNo = #{donorno}</if>
        <!-- 2026-10-22:报销单列表支持按"捐献者姓名"模糊筛选(仅在传值时生效,不影响其它调用方) -->
        <if test="donorname != null  and donorname != ''">and DonorName like concat('%', #{donorname}, '%')</if>
        <if test="fundTaxId != null ">and fund_tax_id = #{fundTaxId}</if>
        <if test="userno != null  and userno != ''">and UserNo = #{userno}</if>
        <if test="username != null  and username != ''">and UserName like concat('%', #{username}, '%')</if>
        <!-- 2026-11-10:业务组长看本组(申请人所属业务组编号 = 登录人部门ID) -->
        <if test="deptmentno != null  and deptmentno != ''">and DeptmentNo = #{deptmentno}</if>
        <if test="applytype != null  and applytype != ''">and ApplyType = #{applytype}</if>
        <if test="deptmentname != null  and deptmentname != ''">and DeptmentName like concat('%', #{deptmentname},
            '%')
@@ -294,4 +306,19 @@
        </set>
        where id = #{id}
    </update>
    <!-- 2026-12-03:删除个税汇总单时解绑申请单。SP_SELECT_EXPERTFEE 的选择条件是
         istax = 0 且 fund_tax_id is null,所以这里必须同时复位两列(并清空算税时间),
         只清 fund_tax_id 会让单据永久无法再被选择。 -->
    <update id="clearFundTaxRelationByFundTaxIds">
        update service_fund
        set fund_tax_id = null,
            istax = 0,
            fundtaxtime = null
        where fund_tax_id in
        <foreach item="item" index="index" collection="fundTaxIds" open="(" separator="," close=")">
            #{item}
        </foreach>
    </update>
</mapper>