yxh
7 小时以前 e61966a89350cf11940d5bd538a5dda06cb6b437
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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<ServiceFund> {
    /**
     * 查询费用申请主列表
     *
     * @param serviceFund 费用申请主
     * @return 费用申请主集合
     */
    public List<ServiceFund> selectServiceFundList(ServiceFund serviceFund);
 
    List<ServiceFund> getInfoByInfoId(Long infoid);
 
    Long getFundId(Long infoid);
 
    List<FundVO> selectVOList(FundVO fundVO);
 
    List<SpFinancialExpensesFundOut> 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<SpFinancialExpensesFundOut> 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);
 
    /**
     * 删除个税汇总单时,解绑该批次下的专家费申请单。
     * <p>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<Long> fundTaxIds);
 
}