package com.ruoyi.project.configuration.mapper;

import com.ruoyi.framework.aspectj.lang.annotation.DataScope;
import com.ruoyi.project.configuration.domain.TMatterFeature;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 危害物质-危害性质Mapper接口
 *
 * @author ruoyi
 * @date 2021-12-28
 */
public interface TMatterFeatureMapper {

    public List<String> queryByIds(@Param("ids") String[] ids);

    /**
     * 查询危害物质-危害性质
     *
     * @param id 危害物质-危害性质ID
     * @return 危害物质-危害性质
     */
    public TMatterFeature selectTMatterFeatureById(Long id);

    /**
     * 查询危害物质-危害性质列表
     *
     * @param tMatterFeature 危害物质-危害性质
     * @return 危害物质-危害性质集合
     */
    @DataScope(deptAlias = "d")
    public List<TMatterFeature> selectTMatterFeatureList(TMatterFeature tMatterFeature);

    /**
     * 新增危害物质-危害性质
     *
     * @param tMatterFeature 危害物质-危害性质
     * @return 结果
     */
    public int insertTMatterFeature(TMatterFeature tMatterFeature);

    /**
     * 修改危害物质-危害性质
     *
     * @param tMatterFeature 危害物质-危害性质
     * @return 结果
     */
    public int updateTMatterFeature(TMatterFeature tMatterFeature);

    /**
     * 删除危害物质-危害性质
     *
     * @param id 危害物质-危害性质ID
     * @return 结果
     */
    public int deleteTMatterFeatureById(Long id);

    /**
     * 批量删除危害物质-危害性质
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteTMatterFeatureByIds(Long[] ids);
}
