package com.ruoyi.project.reliability.mapper;

import java.util.List;
import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
import com.ruoyi.project.reliability.domain.TDeviceNagetiveFactor;

/**
 * 不良因素清单Mapper接口
 * 
 * @author ruoyi
 * @date 2022-07-07
 */
public interface TDeviceNagetiveFactorMapper 
{
    /**
     * 查询不良因素清单
     * 
     * @param id 不良因素清单ID
     * @return 不良因素清单
     */
    public TDeviceNagetiveFactor selectTDeviceNagetiveFactorById(Long id);

    /**
     * 查询不良因素清单列表
     * 
     * @param tDeviceNagetiveFactor 不良因素清单
     * @return 不良因素清单集合
     */
    @DataScope(deptAlias = "d")
    public List<TDeviceNagetiveFactor> selectTDeviceNagetiveFactorList(TDeviceNagetiveFactor tDeviceNagetiveFactor);

    /**
     * 新增不良因素清单
     * 
     * @param tDeviceNagetiveFactor 不良因素清单
     * @return 结果
     */
    public int insertTDeviceNagetiveFactor(TDeviceNagetiveFactor tDeviceNagetiveFactor);

    /**
     * 修改不良因素清单
     * 
     * @param tDeviceNagetiveFactor 不良因素清单
     * @return 结果
     */
    public int updateTDeviceNagetiveFactor(TDeviceNagetiveFactor tDeviceNagetiveFactor);

    /**
     * 删除不良因素清单
     * 
     * @param id 不良因素清单ID
     * @return 结果
     */
    public int deleteTDeviceNagetiveFactorById(Long id);

    /**
     * 批量删除不良因素清单
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteTDeviceNagetiveFactorByIds(Long[] ids);
}
