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

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.production.mapper.TFivesMonthlyInspectionMapper;
import com.ruoyi.project.production.domain.TFivesMonthlyInspection;
import com.ruoyi.project.production.service.ITFivesMonthlyInspectionService;

/**
 * 区域月度检查Service业务层处理
 *
 * @author ruoyi
 * @date 2023-03-30
 */
@Service
public class TFivesMonthlyInspectionServiceImpl implements ITFivesMonthlyInspectionService
{
    @Autowired
    private TFivesMonthlyInspectionMapper tFivesMonthlyInspectionMapper;

    /**
     * 查询区域月度检查
     *
     * @param id 区域月度检查ID
     * @return 区域月度检查
     */
    @Override
    public TFivesMonthlyInspection selectTFivesMonthlyInspectionById(Long id)
    {
        return tFivesMonthlyInspectionMapper.selectTFivesMonthlyInspectionById(id);
    }

    /**
     * 查询区域月度检查列表
     *
     * @param tFivesMonthlyInspection 区域月度检查
     * @return 区域月度检查
     */
    @Override
    public List<TFivesMonthlyInspection> selectTFivesMonthlyInspectionList(TFivesMonthlyInspection tFivesMonthlyInspection)
    {
        return tFivesMonthlyInspectionMapper.selectTFivesMonthlyInspectionList(tFivesMonthlyInspection);
    }

    /**
     * 新增区域月度检查
     *
     * @param tFivesMonthlyInspection 区域月度检查
     * @return 结果
     */
    @Override
    public int insertTFivesMonthlyInspection(TFivesMonthlyInspection tFivesMonthlyInspection)
    {
        return tFivesMonthlyInspectionMapper.insertTFivesMonthlyInspection(tFivesMonthlyInspection);
    }

    /**
     * 修改区域月度检查
     *
     * @param tFivesMonthlyInspection 区域月度检查
     * @return 结果
     */
    @Override
    public int updateTFivesMonthlyInspection(TFivesMonthlyInspection tFivesMonthlyInspection)
    {
        return tFivesMonthlyInspectionMapper.updateTFivesMonthlyInspection(tFivesMonthlyInspection);
    }

    /**
     * 批量删除区域月度检查
     *
     * @param ids 需要删除的区域月度检查ID
     * @return 结果
     */
    @Override
    public int deleteTFivesMonthlyInspectionByIds(Long[] ids)
    {
        return tFivesMonthlyInspectionMapper.deleteTFivesMonthlyInspectionByIds(ids);
    }

    /**
     * 删除区域月度检查信息
     *
     * @param id 区域月度检查ID
     * @return 结果
     */
    @Override
    public int deleteTFivesMonthlyInspectionById(Long id)
    {
        return tFivesMonthlyInspectionMapper.deleteTFivesMonthlyInspectionById(id);
    }
}
