package com.ruoyi.project.check.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.check.mapper.TCheckInstrumentRecordMapper;
import com.ruoyi.project.check.domain.TCheckInstrumentRecord;
import com.ruoyi.project.check.service.ITCheckInstrumentRecordService;

/**
 * 仪器维护记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-11-22
 */
@Service
public class TCheckInstrumentRecordServiceImpl implements ITCheckInstrumentRecordService 
{
    @Autowired
    private TCheckInstrumentRecordMapper tCheckInstrumentRecordMapper;

    /**
     * 查询仪器维护记录
     * 
     * @param id 仪器维护记录主键
     * @return 仪器维护记录
     */
    @Override
    public TCheckInstrumentRecord selectTCheckInstrumentRecordById(Long id)
    {
        return tCheckInstrumentRecordMapper.selectTCheckInstrumentRecordById(id);
    }

    /**
     * 查询仪器维护记录列表
     * 
     * @param tCheckInstrumentRecord 仪器维护记录
     * @return 仪器维护记录
     */
    @Override
    public List<TCheckInstrumentRecord> selectTCheckInstrumentRecordList(TCheckInstrumentRecord tCheckInstrumentRecord)
    {
        return tCheckInstrumentRecordMapper.selectTCheckInstrumentRecordList(tCheckInstrumentRecord);
    }

    /**
     * 新增仪器维护记录
     * 
     * @param tCheckInstrumentRecord 仪器维护记录
     * @return 结果
     */
    @Override
    public int insertTCheckInstrumentRecord(TCheckInstrumentRecord tCheckInstrumentRecord)
    {
        return tCheckInstrumentRecordMapper.insertTCheckInstrumentRecord(tCheckInstrumentRecord);
    }

    /**
     * 修改仪器维护记录
     * 
     * @param tCheckInstrumentRecord 仪器维护记录
     * @return 结果
     */
    @Override
    public int updateTCheckInstrumentRecord(TCheckInstrumentRecord tCheckInstrumentRecord)
    {
        return tCheckInstrumentRecordMapper.updateTCheckInstrumentRecord(tCheckInstrumentRecord);
    }

    /**
     * 批量删除仪器维护记录
     * 
     * @param ids 需要删除的仪器维护记录主键
     * @return 结果
     */
    @Override
    public int deleteTCheckInstrumentRecordByIds(Long[] ids)
    {
        return tCheckInstrumentRecordMapper.deleteTCheckInstrumentRecordByIds(ids);
    }

    /**
     * 删除仪器维护记录信息
     * 
     * @param id 仪器维护记录主键
     * @return 结果
     */
    @Override
    public int deleteTCheckInstrumentRecordById(Long id)
    {
        return tCheckInstrumentRecordMapper.deleteTCheckInstrumentRecordById(id);
    }
}
