/*
 * Copyright (c) 2024 codvision.com All Rights Reserved.
 */

package com.codvision.basic.mapper.patrol;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.codvision.basic.entity.patrol.PatrolClueType;
import com.codvision.basic.entity.vo.patrol.PatrolClueTypeVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author codvision
 */
public interface PatrolClueTypeMapper extends BaseMapper<PatrolClueType> {

    /**
     * 通用查询
     * @param paraMap 参数
     * @return 列表
     */
    List<PatrolClueTypeVO> findAll(@Param("query") Map<String, Object> paraMap);

    /**
     * 查询下级线索类型
     * @param pid pid
     * @return List<PatrolClueTypeVO>
     */
    List<PatrolClueTypeVO> getNextLevel(@Param("pid") int pid);
}
