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.TWarehouseFeeAgreementTypeBusinessDetailMapper;
import com.ruoyi.feeagreement.domain.TWarehouseFeeAgreementTypeBusinessDetail;
import com.ruoyi.feeagreement.service.ITWarehouseFeeAgreementTypeBusinessDetailService;

/**
 * 费用协议从从表Service业务层处理
 * 
 * @author dongyongwei
 * @date 2021-08-02
 */
@Service
public class TWarehouseFeeAgreementTypeBusinessDetailServiceImpl implements ITWarehouseFeeAgreementTypeBusinessDetailService 
{
    @Autowired
    private TWarehouseFeeAgreementTypeBusinessDetailMapper tWarehouseFeeAgreementTypeBusinessDetailMapper;

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

    /**
     * 查询费用协议从从表列表
     * 
     * @param tWarehouseFeeAgreementTypeBusinessDetail 费用协议从从表
     * @return 费用协议从从表
     */
    @Override
    public List<TWarehouseFeeAgreementTypeBusinessDetail> selectTWarehouseFeeAgreementTypeBusinessDetailList(TWarehouseFeeAgreementTypeBusinessDetail tWarehouseFeeAgreementTypeBusinessDetail)
    {
        return tWarehouseFeeAgreementTypeBusinessDetailMapper.selectTWarehouseFeeAgreementTypeBusinessDetailList(tWarehouseFeeAgreementTypeBusinessDetail);
    }

    /**
     * 新增费用协议从从表
     * 
     * @param tWarehouseFeeAgreementTypeBusinessDetail 费用协议从从表
     * @return 结果
     */
    @Override
    public int insertTWarehouseFeeAgreementTypeBusinessDetail(TWarehouseFeeAgreementTypeBusinessDetail tWarehouseFeeAgreementTypeBusinessDetail)
    {
        return tWarehouseFeeAgreementTypeBusinessDetailMapper.insertTWarehouseFeeAgreementTypeBusinessDetail(tWarehouseFeeAgreementTypeBusinessDetail);
    }

    /**
     * 修改费用协议从从表
     * 
     * @param tWarehouseFeeAgreementTypeBusinessDetail 费用协议从从表
     * @return 结果
     */
    @Override
    public int updateTWarehouseFeeAgreementTypeBusinessDetail(TWarehouseFeeAgreementTypeBusinessDetail tWarehouseFeeAgreementTypeBusinessDetail)
    {
        return tWarehouseFeeAgreementTypeBusinessDetailMapper.updateTWarehouseFeeAgreementTypeBusinessDetail(tWarehouseFeeAgreementTypeBusinessDetail);
    }

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

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