package com.ruoyi.project.inspection.mapper;

import java.util.List;
import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
import com.ruoyi.project.inspection.domain.TInspectionRecordRegion;

/**
 * 区域巡检记录Mapper接口
 * 
 * @author ruoyi
 * @date 2022-06-23
 */
public interface TInspectionRecordRegionMapper 
{
    /**
     * 查询区域巡检记录
     * 
     * @param id 区域巡检记录ID
     * @return 区域巡检记录
     */
    public TInspectionRecordRegion selectTInspectionRecordRegionById(Long id);

    /**
     * 查询区域巡检记录列表
     * 
     * @param tInspectionRecordRegion 区域巡检记录
     * @return 区域巡检记录集合
     */
    @DataScope(deptAlias = "d")
    public List<TInspectionRecordRegion> selectTInspectionRecordRegionList(TInspectionRecordRegion tInspectionRecordRegion);

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

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

    /**
     * 删除区域巡检记录
     * 
     * @param id 区域巡检记录ID
     * @return 结果
     */
    public int deleteTInspectionRecordRegionById(Long id);

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