package cn.ezhizao.project.business.finance.IndividualIncomeTax.service.impl;

import cn.ezhizao.project.business.finance.IndividualIncomeTax.domain.BizFinancialIndividualIncomeTax;
import cn.ezhizao.project.business.finance.IndividualIncomeTax.domain.BizFinancialIndividualIncomeTaxDetail;
import cn.ezhizao.project.business.finance.IndividualIncomeTax.mapper.BizFinancialIndividualIncomeTaxMapper;
import cn.ezhizao.project.business.finance.IndividualIncomeTax.service.IBizFinancialIndividualIncomeTaxService;
import cn.ezhizao.project.business.salary.domain.BizFinancialSalary;
import cn.ezhizao.project.business.salary.domain.BizFinancialSalaryDetail;
import cn.ezhizao.project.business.salary.domain.BizFinancialSalaryDetailEmployee;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 个税任务Service业务层处理
 *
 * @author ruoyi
 * @date 2023-11-13
 */
@Service
public class BizFinancialIndividualIncomeTaxServiceImpl  extends ServiceImpl<BizFinancialIndividualIncomeTaxMapper, BizFinancialIndividualIncomeTax> implements IBizFinancialIndividualIncomeTaxService
{
    @Resource
    private BizFinancialIndividualIncomeTaxMapper bizFinancialIndividualIncomeTaxMapper;

    /**
     * 查询个税任务列表
     *
     * @param bizFinancialIndividualIncomeTax 个税任务
     * @return 个税任务
     */
    @Override
    public List<BizFinancialIndividualIncomeTax> getList(BizFinancialIndividualIncomeTax bizFinancialIndividualIncomeTax)
    {
        return bizFinancialIndividualIncomeTaxMapper.getList(bizFinancialIndividualIncomeTax);
    }

    /**
     * 物理删除
     * @param bizFinancialIndividualIncomeTax
     * @return 删除结果
     */
    @Override
    public int physicalDelete(BizFinancialIndividualIncomeTax bizFinancialIndividualIncomeTax){ return bizFinancialIndividualIncomeTaxMapper.physicalDelete(bizFinancialIndividualIncomeTax); };


    /**
     * 查询工资任务
     * @return 查询结果
     */
    @Override
    public BizFinancialSalary getSalary(Long workOrderId){
        return bizFinancialIndividualIncomeTaxMapper.getSalary(workOrderId);
    }

    /**
     * 查询月工资单
     * @return 查询结果
     */
    @Override
    public  BizFinancialSalaryDetail getSalaryDetail(String year, String month, Long id){
        return bizFinancialIndividualIncomeTaxMapper.getSalaryDetail(year,month,id);
    }

    /**
     * 查询月工资数据
     * @return 查询结果
     */
    @Override
    public  List<BizFinancialSalaryDetailEmployee> getSalaryEmployee(Long id){
        return bizFinancialIndividualIncomeTaxMapper.getSalaryEmployee(id);
    }

    @Override
    public BizFinancialIndividualIncomeTaxDetail getTaxDetail(String year, String month, Long id) {
        return bizFinancialIndividualIncomeTaxMapper.getTaxDetail(year,month,id);
    }




}
