package com.ruoyi.project.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import java.util.Collection; import java.util.List; import com.ruoyi.project.domain.ServiceFund; import com.ruoyi.project.domain.vo.FundVO; import com.ruoyi.project.domain.vo.SpFinancialExpensesFundOut; import com.ruoyi.project.domain.vo.SpFinancialExpensesReimbursementOut; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; /** * 费用申请主Mapper接口 * * @author ruoyi * @date 2022-01-24 */ @Mapper public interface ServiceFundMapper extends BaseMapper { /** * 查询费用申请主列表 * * @param serviceFund 费用申请主 * @return 费用申请主集合 */ public List selectServiceFundList(ServiceFund serviceFund); List getInfoByInfoId(Long infoid); Long getFundId(Long infoid); List selectVOList(FundVO fundVO); List getListBypower(@Param("PAUSERNO") String PAUSERNO, @Param("PAFUNDTYPE") Integer PAFUNDTYPE, @Param("PAAPPLICANT") String PAAPPLICANT, @Param("PAAPPLICATIONBEGTIME") String PAAPPLICATIONBEGTIME, @Param("PAAPPLICATIONENDTIME") String PAAPPLICATIONENDTIME, @Param("PADEPARTMENT") String PADEPARTMENT, @Param("CHECKFLAG") Integer CHECKFLAG, @Param("APPLYTYPE") Integer APPLYTYPE, @Param("CHECKSTATUS") Integer CHECKSTATUS, @Param("donorname") String donorname); List getExpertfeeList(@Param("PAAPPLYTYPE") Integer PAAPPLYTYPE, @Param("PFUNDTAXID") Integer PFUNDTAXID, @Param("DONORNAME") String DONORNAME, @Param("PADEPARTID") Integer PADEPARTID, @Param("PAUSERNAME") String PAUSERNAME); Boolean updateFundTaxIdById(@Param("id") Long id, @Param("fundTaxId") Long fundTaxId); Boolean updateFundIsTexById(@Param("id") Long id, @Param("isTax") Long isTax); /** * 删除个税汇总单时,解绑该批次下的专家费申请单。 *

2026-12-03:{@code SP_SELECT_EXPERTFEE}(个税汇总选择专家费报销单的数据源)要求 * {@code service_fund.istax = 0} 且 {@code service_fund.fund_tax_id is null}, * 所以解绑必须同时复位这两列,并清空算税时间,否则单据再也选不回来。 * * @param fundTaxIds 个税汇总单ID集合 * @return 受影响的申请单条数 */ int clearFundTaxRelationByFundTaxIds(@Param("fundTaxIds") Collection fundTaxIds); }