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

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.inspection.mapper.TInspectionRecordRegionMapper;
import com.ruoyi.project.inspection.domain.TInspectionRecordRegion;
import com.ruoyi.project.inspection.service.ITInspectionRecordRegionService;

/**
 * 区域巡检记录Service业务层处理
 *
 * @author ruoyi
 * @date 2022-06-23
 */
@Service
public class TInspectionRecordRegionServiceImpl implements ITInspectionRecordRegionService
{
    @Autowired
    private TInspectionRecordRegionMapper tInspectionRecordRegionMapper;

    /**
     * 查询区域巡检记录
     *
     * @param id 区域巡检记录ID
     * @return 区域巡检记录
     */
    @Override
    public TInspectionRecordRegion selectTInspectionRecordRegionById(Long id)
    {
        return tInspectionRecordRegionMapper.selectTInspectionRecordRegionById(id);
    }

    /**
     * 查询区域巡检记录列表
     *
     * @param tInspectionRecordRegion 区域巡检记录
     * @return 区域巡检记录
     */
    @Override
    public List<TInspectionRecordRegion> selectTInspectionRecordRegionList(TInspectionRecordRegion tInspectionRecordRegion)
    {
        return tInspectionRecordRegionMapper.selectTInspectionRecordRegionList(tInspectionRecordRegion);
    }

    /**
     * 新增区域巡检记录
     *
     * @param tInspectionRecordRegion 区域巡检记录
     * @return 结果
     */
    @Override
    public int insertTInspectionRecordRegion(TInspectionRecordRegion tInspectionRecordRegion)
    {
        return tInspectionRecordRegionMapper.insertTInspectionRecordRegion(tInspectionRecordRegion);
    }

    /**
     * 修改区域巡检记录
     *
     * @param tInspectionRecordRegion 区域巡检记录
     * @return 结果
     */
    @Override
    public int updateTInspectionRecordRegion(TInspectionRecordRegion tInspectionRecordRegion)
    {
        return tInspectionRecordRegionMapper.updateTInspectionRecordRegion(tInspectionRecordRegion);
    }

    /**
     * 批量删除区域巡检记录
     *
     * @param ids 需要删除的区域巡检记录ID
     * @return 结果
     */
    @Override
    public int deleteTInspectionRecordRegionByIds(Long[] ids)
    {
        return tInspectionRecordRegionMapper.deleteTInspectionRecordRegionByIds(ids);
    }

    /**
     * 删除区域巡检记录信息
     *
     * @param id 区域巡检记录ID
     * @return 结果
     */
    @Override
    public int deleteTInspectionRecordRegionById(Long id)
    {
        return tInspectionRecordRegionMapper.deleteTInspectionRecordRegionById(id);
    }
}
