package com.ruoyi.asset.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.asset.mapper.TbAssetStatusRecordMapper;
import com.ruoyi.asset.domain.TbAssetStatusRecord;
import com.ruoyi.asset.service.ITbAssetStatusRecordService;

/**
 * 资产设备状态记录Service业务层处理
 * 
 * @author 原动力
 * @date 2023-03-27
 */
@Service
public class TbAssetStatusRecordServiceImpl extends ServiceImpl<TbAssetStatusRecordMapper, TbAssetStatusRecord> implements ITbAssetStatusRecordService
{
    @Autowired
    private TbAssetStatusRecordMapper tbAssetStatusRecordMapper;

    /**
     * 查询资产设备状态记录
     * 
     * @param id 资产设备状态记录主键
     * @return 资产设备状态记录
     */
    @Override
    public TbAssetStatusRecord selectTbAssetStatusRecordById(Long id)
    {
        return tbAssetStatusRecordMapper.selectTbAssetStatusRecordById(id);
    }

    /**
     * 查询资产设备状态记录列表
     * 
     * @param tbAssetStatusRecord 资产设备状态记录
     * @return 资产设备状态记录
     */
    @Override
    public List<TbAssetStatusRecord> selectTbAssetStatusRecordList(TbAssetStatusRecord tbAssetStatusRecord)
    {
        return tbAssetStatusRecordMapper.selectTbAssetStatusRecordList(tbAssetStatusRecord);
    }

    /**
     * 新增资产设备状态记录
     * 
     * @param tbAssetStatusRecord 资产设备状态记录
     * @return 结果
     */
    @Override
    public int insertTbAssetStatusRecord(TbAssetStatusRecord tbAssetStatusRecord)
    {
        return tbAssetStatusRecordMapper.insertTbAssetStatusRecord(tbAssetStatusRecord);
    }

    /**
     * 修改资产设备状态记录
     * 
     * @param tbAssetStatusRecord 资产设备状态记录
     * @return 结果
     */
    @Override
    public int updateTbAssetStatusRecord(TbAssetStatusRecord tbAssetStatusRecord)
    {
        return tbAssetStatusRecordMapper.updateTbAssetStatusRecord(tbAssetStatusRecord);
    }

    /**
     * 批量删除资产设备状态记录
     * 
     * @param ids 需要删除的资产设备状态记录主键
     * @return 结果
     */
    @Override
    public int deleteTbAssetStatusRecordByIds(Long[] ids)
    {
        return tbAssetStatusRecordMapper.deleteTbAssetStatusRecordByIds(ids);
    }

    /**
     * 删除资产设备状态记录信息
     * 
     * @param id 资产设备状态记录主键
     * @return 结果
     */
    @Override
    public int deleteTbAssetStatusRecordById(Long id)
    {
        return tbAssetStatusRecordMapper.deleteTbAssetStatusRecordById(id);
    }
}
