package com.ruoyi.change.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.change.mapper.TbAssetAllocationDetailMapper;
import com.ruoyi.change.domain.TbAssetAllocationDetail;
import com.ruoyi.change.service.ITbAssetAllocationDetailService;

/**
 * 资产调拨明细Service业务层处理
 * 
 * @author 原动力
 * @date 2023-05-15
 */
@Service
public class TbAssetAllocationDetailServiceImpl implements ITbAssetAllocationDetailService 
{
    @Autowired
    private TbAssetAllocationDetailMapper tbAssetAllocationDetailMapper;

    /**
     * 查询资产调拨明细
     * 
     * @param id 资产调拨明细主键
     * @return 资产调拨明细
     */
    @Override
    public TbAssetAllocationDetail selectTbAssetAllocationDetailById(Long id)
    {
        return tbAssetAllocationDetailMapper.selectTbAssetAllocationDetailById(id);
    }

    /**
     * 查询资产调拨明细列表
     * 
     * @param tbAssetAllocationDetail 资产调拨明细
     * @return 资产调拨明细
     */
    @Override
    public List<TbAssetAllocationDetail> selectTbAssetAllocationDetailList(TbAssetAllocationDetail tbAssetAllocationDetail)
    {
        return tbAssetAllocationDetailMapper.selectTbAssetAllocationDetailList(tbAssetAllocationDetail);
    }

    /**
     * 新增资产调拨明细
     * 
     * @param tbAssetAllocationDetail 资产调拨明细
     * @return 结果
     */
    @Override
    public int insertTbAssetAllocationDetail(TbAssetAllocationDetail tbAssetAllocationDetail)
    {
        return tbAssetAllocationDetailMapper.insertTbAssetAllocationDetail(tbAssetAllocationDetail);
    }

    /**
     * 修改资产调拨明细
     * 
     * @param tbAssetAllocationDetail 资产调拨明细
     * @return 结果
     */
    @Override
    public int updateTbAssetAllocationDetail(TbAssetAllocationDetail tbAssetAllocationDetail)
    {
        return tbAssetAllocationDetailMapper.updateTbAssetAllocationDetail(tbAssetAllocationDetail);
    }

    /**
     * 批量删除资产调拨明细
     * 
     * @param ids 需要删除的资产调拨明细主键
     * @return 结果
     */
    @Override
    public int deleteTbAssetAllocationDetailByIds(Long[] ids)
    {
        return tbAssetAllocationDetailMapper.deleteTbAssetAllocationDetailByIds(ids);
    }

    /**
     * 删除资产调拨明细信息
     * 
     * @param id 资产调拨明细主键
     * @return 结果
     */
    @Override
    public int deleteTbAssetAllocationDetailById(Long id)
    {
        return tbAssetAllocationDetailMapper.deleteTbAssetAllocationDetailById(id);
    }
}
