yxh
8 小时以前 e61966a89350cf11940d5bd538a5dda06cb6b437
ruoyi-project/src/main/resources/mapper/project/ServiceFundMapper.xml
@@ -155,6 +155,8 @@
        <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},
            '%')
@@ -304,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>