package com.openhis.administration.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.openhis.administration.domain.PractitionerRole;
import com.openhis.administration.dto.RoleDataDto;

/**
 * 岗位管理Mapper接口
 *
 * @author system
 * @date 2025-02-20
 */
@Repository
public interface PractitionerRoleMapper extends BaseMapper<PractitionerRole> {
    /**
     * Desc: 根据员工ID 查询
     * @param practitionerId
     * @param roleCode
     * @Author raymond
     * @Date 16:43 2025/10/27
     * @return java.util.List<com.openhis.administration.dto.RoleDataDto>
     **/
    List<RoleDataDto> searchPractitionerRoleByPractitionerId(@Param("practitionerId") Long practitionerId,@Param("roleCode") String roleCode);
    /**
     * Desc: 根据员工ID数组 查询
     * @param practitionerIds
     * @Author raymond
     * @Date 16:49 2025/10/27
     * @return java.util.List<com.openhis.administration.dto.RoleDataDto>
     **/
    List<RoleDataDto> searchPractitionerRoleByPractitionerIds(@Param("practitionerIds") Long practitionerIds);
    /**
     * Desc: 根据员工ID 查询 locationId数组
     * @param practitionerId
     * @param roleCode
     * @Author raymond
     * @Date 16:50 2025/10/27
     * @return java.util.List<java.lang.Long>
     **/
    List<Long> searchPractitionerRoleLocationIds(@Param("practitionerId") Long practitionerId,@Param("roleCode") String roleCode);

}