package org.dromara.biz.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.dromara.biz.domain.BizPoliceCapacity;
import org.dromara.biz.domain.vo.BizPoliceCapacityVo;
import org.dromara.biz.domain.vo.PoliceCapacityTree;
import org.dromara.common.mybatis.core.mapper.BaseMapperPlus;

import java.util.List;

/**
 * 警种能力Mapper接口
 *
 * @author Luo.J
 * @date 2025-05-09
 */
@Mapper
public interface BizPoliceCapacityMapper extends BaseMapperPlus<BizPoliceCapacity, BizPoliceCapacityVo> {

    /**
     * 根据 部门名称/警种能力名称 查询有警种能力信息的部门id集合
     * @param name
     * @return
     */
    List<Long> selectDeptIdList(String name);

    @Select("select * from biz_police_capacity where dept_id = ${deptId}")
    List<BizPoliceCapacity> selectByDept(Long deptId);
}
