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.Location;
import com.openhis.administration.dto.LocationDataDto;
import com.openhis.administration.dto.PatientBedInfoDto;

/**
 * 位置管理Mapper接口
 *
 * @author system
 * @date 2025-02-20
 */
@Repository
public interface LocationMapper extends BaseMapper<Location> {
    /**
     * Desc: 根据区域id数组查询 区域表
     * @param locationIds
     * @Author raymond
     * @Date 07:46 2025/10/28
     * @return java.util.List<com.openhis.administration.dto.LocationDataDto>
     **/
    List<LocationDataDto> searchLocationDataByIds(@Param("locationIds") List<Long> locationIds);
    /**
     * Desc: 根据病区bus_no 查询病床
     * @param busNo
     * @param formEnum
     * @Author raymond
     * @Date 14:01 2025/10/28
     * @return java.util.List<com.openhis.administration.dto.LocationDataDto>
     **/
    List<PatientBedInfoDto> searchLocationDataByBusNo(@Param("busNo") String busNo, @Param("formEnum") Integer formEnum, @Param("statusEnum") Integer statusEnum);

}