package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.FloodKnowledgeBase;

/**
 * 洪水知识库Mapper接口
 *
 * @author jackeyhuang
 * @version 1.0.0
 * @date 2025-01-27
 */
public interface FloodKnowledgeBaseMapper
{
    /**
     * 查询洪水知识库
     *
     * @param knowledgeId 洪水知识库主键
     * @return 洪水知识库
     */
    public FloodKnowledgeBase selectFloodKnowledgeBaseByKnowledgeId(Long knowledgeId);

    /**
     * 查询洪水知识库列表
     *
     * @param floodKnowledgeBase 洪水知识库
     * @return 洪水知识库集合
     */
    public List<FloodKnowledgeBase> selectFloodKnowledgeBaseList(FloodKnowledgeBase floodKnowledgeBase);

    /**
     * 新增洪水知识库
     *
     * @param floodKnowledgeBase 洪水知识库
     * @return 结果
     */
    public int insertFloodKnowledgeBase(FloodKnowledgeBase floodKnowledgeBase);

    /**
     * 修改洪水知识库
     *
     * @param floodKnowledgeBase 洪水知识库
     * @return 结果
     */
    public int updateFloodKnowledgeBase(FloodKnowledgeBase floodKnowledgeBase);

    /**
     * 删除洪水知识库
     *
     * @param knowledgeId 洪水知识库主键
     * @return 结果
     */
    public int deleteFloodKnowledgeBaseByKnowledgeId(Long knowledgeId);

    /**
     * 批量删除洪水知识库
     *
     * @param knowledgeIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteFloodKnowledgeBaseByKnowledgeIds(Long[] knowledgeIds);

    /**
     * 根据知识库名称查询
     *
     * @param knowledgeName 知识库名称
     * @return 洪水知识库
     */
    public FloodKnowledgeBase selectFloodKnowledgeBaseByKnowledgeName(String knowledgeName);

    /**
     * 统计知识库总数
     *
     * @return 知识库总数
     */
    public int countFloodKnowledgeBase();
}
