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.TWarehouseFeeAgreementTypeMapper;
import com.ruoyi.feeagreement.domain.TWarehouseFeeAgreementType;
import com.ruoyi.feeagreement.service.ITWarehouseFeeAgreementTypeService;

/**
 * 费用协议主表Service业务层处理
 * 
 * @author dongyongwei
 * @date 2021-08-04
 */
@Service
public class TWarehouseFeeAgreementTypeServiceImpl implements ITWarehouseFeeAgreementTypeService 
{
    @Autowired
    private TWarehouseFeeAgreementTypeMapper tWarehouseFeeAgreementTypeMapper;

    /**
     * 查询费用协议主表
     * 
     * @param fId 费用协议主表ID
     * @return 费用协议主表
     */
    @Override
    public TWarehouseFeeAgreementType selectTWarehouseFeeAgreementTypeById(Long fId)
    {
        return tWarehouseFeeAgreementTypeMapper.selectTWarehouseFeeAgreementTypeById(fId);
    }

    /**
     * 查询费用协议主表列表
     * 
     * @param tWarehouseFeeAgreementType 费用协议主表
     * @return 费用协议主表
     */
    @Override
    public List<TWarehouseFeeAgreementType> selectTWarehouseFeeAgreementTypeList(TWarehouseFeeAgreementType tWarehouseFeeAgreementType)
    {
        return tWarehouseFeeAgreementTypeMapper.selectTWarehouseFeeAgreementTypeList(tWarehouseFeeAgreementType);
    }

    /**
     * 新增费用协议主表
     * 
     * @param tWarehouseFeeAgreementType 费用协议主表
     * @return 结果
     */
    @Override
    public int insertTWarehouseFeeAgreementType(TWarehouseFeeAgreementType tWarehouseFeeAgreementType)
    {
        return tWarehouseFeeAgreementTypeMapper.insertTWarehouseFeeAgreementType(tWarehouseFeeAgreementType);
    }

    /**
     * 修改费用协议主表
     * 
     * @param tWarehouseFeeAgreementType 费用协议主表
     * @return 结果
     */
    @Override
    public int updateTWarehouseFeeAgreementType(TWarehouseFeeAgreementType tWarehouseFeeAgreementType)
    {
        return tWarehouseFeeAgreementTypeMapper.updateTWarehouseFeeAgreementType(tWarehouseFeeAgreementType);
    }

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

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