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.TWarehouseFeeAgreementTypeBusinessMapper;
import com.ruoyi.feeagreement.domain.TWarehouseFeeAgreementTypeBusiness;
import com.ruoyi.feeagreement.service.ITWarehouseFeeAgreementTypeBusinessService;

/**
 * 费用协议从表Service业务层处理
 * 
 * @author dongyongwei
 * @date 2021-07-30
 */
@Service
public class TWarehouseFeeAgreementTypeBusinessServiceImpl implements ITWarehouseFeeAgreementTypeBusinessService 
{
    @Autowired
    private TWarehouseFeeAgreementTypeBusinessMapper tWarehouseFeeAgreementTypeBusinessMapper;

    /**
     * 查询费用协议从表
     * 
     * @param fId 费用协议从表ID
     * @return 费用协议从表
     */
    @Override
    public TWarehouseFeeAgreementTypeBusiness selectTWarehouseFeeAgreementTypeBusinessById(Long fId)
    {
        return tWarehouseFeeAgreementTypeBusinessMapper.selectTWarehouseFeeAgreementTypeBusinessById(fId);
    }

    /**
     * 查询费用协议从表列表
     * 
     * @param tWarehouseFeeAgreementTypeBusiness 费用协议从表
     * @return 费用协议从表
     */
    @Override
    public List<TWarehouseFeeAgreementTypeBusiness> selectTWarehouseFeeAgreementTypeBusinessList(TWarehouseFeeAgreementTypeBusiness tWarehouseFeeAgreementTypeBusiness)
    {
        return tWarehouseFeeAgreementTypeBusinessMapper.selectTWarehouseFeeAgreementTypeBusinessList(tWarehouseFeeAgreementTypeBusiness);
    }

    /**
     * 新增费用协议从表
     * 
     * @param tWarehouseFeeAgreementTypeBusiness 费用协议从表
     * @return 结果
     */
    @Override
    public int insertTWarehouseFeeAgreementTypeBusiness(TWarehouseFeeAgreementTypeBusiness tWarehouseFeeAgreementTypeBusiness)
    {
        return tWarehouseFeeAgreementTypeBusinessMapper.insertTWarehouseFeeAgreementTypeBusiness(tWarehouseFeeAgreementTypeBusiness);
    }

    /**
     * 修改费用协议从表
     * 
     * @param tWarehouseFeeAgreementTypeBusiness 费用协议从表
     * @return 结果
     */
    @Override
    public int updateTWarehouseFeeAgreementTypeBusiness(TWarehouseFeeAgreementTypeBusiness tWarehouseFeeAgreementTypeBusiness)
    {
        return tWarehouseFeeAgreementTypeBusinessMapper.updateTWarehouseFeeAgreementTypeBusiness(tWarehouseFeeAgreementTypeBusiness);
    }

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

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