package com.ruoyi.feeagreement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.feeagreement.mapper.TWarehouseFeeAgreementTypeBusinessDetailFormulaMapper;
import com.ruoyi.feeagreement.domain.TWarehouseFeeAgreementTypeBusinessDetailFormula;
import com.ruoyi.feeagreement.service.ITWarehouseFeeAgreementTypeBusinessDetailFormulaService;

/**
 * 费用协议从从从Service业务层处理
 * 
 * @author dongyongwei
 * @date 2021-08-02
 */
@Service
public class TWarehouseFeeAgreementTypeBusinessDetailFormulaServiceImpl implements ITWarehouseFeeAgreementTypeBusinessDetailFormulaService 
{
    @Autowired
    private TWarehouseFeeAgreementTypeBusinessDetailFormulaMapper tWarehouseFeeAgreementTypeBusinessDetailFormulaMapper;

    /**
     * 查询费用协议从从从
     * 
     * @param fId 费用协议从从从ID
     * @return 费用协议从从从
     */
    @Override
    public TWarehouseFeeAgreementTypeBusinessDetailFormula selectTWarehouseFeeAgreementTypeBusinessDetailFormulaById(Long fId)
    {
        return tWarehouseFeeAgreementTypeBusinessDetailFormulaMapper.selectTWarehouseFeeAgreementTypeBusinessDetailFormulaById(fId);
    }

    /**
     * 查询费用协议从从从列表
     * 
     * @param tWarehouseFeeAgreementTypeBusinessDetailFormula 费用协议从从从
     * @return 费用协议从从从
     */
    @Override
    public List<TWarehouseFeeAgreementTypeBusinessDetailFormula> selectTWarehouseFeeAgreementTypeBusinessDetailFormulaList(TWarehouseFeeAgreementTypeBusinessDetailFormula tWarehouseFeeAgreementTypeBusinessDetailFormula)
    {
        return tWarehouseFeeAgreementTypeBusinessDetailFormulaMapper.selectTWarehouseFeeAgreementTypeBusinessDetailFormulaList(tWarehouseFeeAgreementTypeBusinessDetailFormula);
    }

    /**
     * 新增费用协议从从从
     * 
     * @param tWarehouseFeeAgreementTypeBusinessDetailFormula 费用协议从从从
     * @return 结果
     */
    @Override
    public int insertTWarehouseFeeAgreementTypeBusinessDetailFormula(TWarehouseFeeAgreementTypeBusinessDetailFormula tWarehouseFeeAgreementTypeBusinessDetailFormula)
    {
        return tWarehouseFeeAgreementTypeBusinessDetailFormulaMapper.insertTWarehouseFeeAgreementTypeBusinessDetailFormula(tWarehouseFeeAgreementTypeBusinessDetailFormula);
    }

    /**
     * 修改费用协议从从从
     * 
     * @param tWarehouseFeeAgreementTypeBusinessDetailFormula 费用协议从从从
     * @return 结果
     */
    @Override
    public int updateTWarehouseFeeAgreementTypeBusinessDetailFormula(TWarehouseFeeAgreementTypeBusinessDetailFormula tWarehouseFeeAgreementTypeBusinessDetailFormula)
    {
        return tWarehouseFeeAgreementTypeBusinessDetailFormulaMapper.updateTWarehouseFeeAgreementTypeBusinessDetailFormula(tWarehouseFeeAgreementTypeBusinessDetailFormula);
    }

    /**
     * 批量删除费用协议从从从
     * 
     * @param fIds 需要删除的费用协议从从从ID
     * @return 结果
     */
    @Override
    public int deleteTWarehouseFeeAgreementTypeBusinessDetailFormulaByIds(Long[] fIds)
    {
        return tWarehouseFeeAgreementTypeBusinessDetailFormulaMapper.deleteTWarehouseFeeAgreementTypeBusinessDetailFormulaByIds(fIds);
    }

    /**
     * 删除费用协议从从从信息
     * 
     * @param fId 费用协议从从从ID
     * @return 结果
     */
    @Override
    public int deleteTWarehouseFeeAgreementTypeBusinessDetailFormulaById(Long fId)
    {
        return tWarehouseFeeAgreementTypeBusinessDetailFormulaMapper.deleteTWarehouseFeeAgreementTypeBusinessDetailFormulaById(fId);
    }
}
