package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.TInspectReportMapper;
import com.ruoyi.business.domain.TInspectReport;
import com.ruoyi.business.service.ITInspectReportService;
import com.ruoyi.common.core.text.Convert;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author wms
 * @date 2022-08-25
 */
@Service
public class TInspectReportServiceImpl extends ServiceImpl<TInspectReportMapper, TInspectReport> implements ITInspectReportService
{
    @Autowired
    private TInspectReportMapper tInspectReportMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param inspectid 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public TInspectReport selectTInspectReportByInspectid(String inspectid)
    {
        return tInspectReportMapper.selectTInspectReportByInspectid(inspectid);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param tInspectReport 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<TInspectReport> selectTInspectReportList(TInspectReport tInspectReport)
    {
        return tInspectReportMapper.selectTInspectReportList(tInspectReport);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param tInspectReport 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertTInspectReport(TInspectReport tInspectReport)
    {
        return tInspectReportMapper.insertTInspectReport(tInspectReport);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param tInspectReport 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateTInspectReport(TInspectReport tInspectReport)
    {
        return tInspectReportMapper.updateTInspectReport(tInspectReport);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param inspectids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteTInspectReportByInspectids(String inspectids)
    {
        return tInspectReportMapper.deleteTInspectReportByInspectids(Convert.toStrArray(inspectids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param inspectid 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteTInspectReportByInspectid(String inspectid)
    {
        return tInspectReportMapper.deleteTInspectReportByInspectid(inspectid);
    }
}
