package com.ruoyi.project.mapper;

import java.util.List;

import com.ruoyi.common.annotation.DataScope;
import com.ruoyi.project.domain.TrsSensitiveWords;
import org.apache.ibatis.annotations.Mapper;

/**
 * 常见错误Mapper接口
 * 
 * @author ruoyi
 * @date 2025-03-17
 */
@Mapper
public interface TrsSensitiveWordsMapper 
{
    /**
     * 查询常见错误
     * 
     * @param id 常见错误主键
     * @return 常见错误
     */
    @DataScope(deptAlias = "d", userAlias = "u")
    public TrsSensitiveWords selectTrsSensitiveWordsById(TrsSensitiveWords words);

    /**
     * 查询常见错误列表
     * 
     * @param trsSensitiveWords 常见错误
     * @return 常见错误集合
     */
    @DataScope(deptAlias = "d", userAlias = "u")
    public List<TrsSensitiveWords> selectTrsSensitiveWordsList(TrsSensitiveWords trsSensitiveWords);

    public List<TrsSensitiveWords> selectTrsSensitiveWordsList_jiaodui(TrsSensitiveWords trsSensitiveWords);

    @DataScope(deptAlias = "d", userAlias = "u")
    public List<TrsSensitiveWords> selectTrsSensitiveWordsListBy(TrsSensitiveWords trsSensitiveWords);
    /*@DataScope(deptAlias = "d", userAlias = "u")*/
    public List<TrsSensitiveWords> selectTrsWordsListByWrongWord(TrsSensitiveWords words);

    /**
     * 新增常见错误
     * 
     * @param trsSensitiveWords 常见错误
     * @return 结果
     */
    public int insertTrsSensitiveWords(TrsSensitiveWords trsSensitiveWords);

    /**
     * 修改常见错误
     * 
     * @param trsSensitiveWords 常见错误
     * @return 结果
     */
    public int updateTrsSensitiveWords(TrsSensitiveWords trsSensitiveWords);

    /**
     * 删除常见错误
     * 
     * @param id 常见错误主键
     * @return 结果
     */
    public int deleteTrsSensitiveWordsById(Long id);

    /**
     * 批量删除常见错误
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTrsSensitiveWordsByIds(String[] ids);
}
