package incheon.product.geoview2d.flight.mapper;

import incheon.com.config.annotation.MainDB;
import incheon.product.geoview2d.flight.vo.FlightPhotoLayerVO;
import incheon.product.geoview2d.flight.vo.FlightPhotoSearchVO;
import org.apache.ibatis.annotations.Param;
import org.egovframe.rte.psl.dataaccess.mapper.Mapper;

import java.util.List;
import java.util.Set;

/**
 * 항공 사진 레이어 Mapper.
 * 테이블: iccom.flight_photo_lyr
 */
@Mapper("productFlightPhotoMapper")
@MainDB
public interface FlightPhotoMapper {

    List<FlightPhotoLayerVO> selectFlightPhotoLayerList(@Param("request") FlightPhotoSearchVO searchVO,
                                                        @Param("otsdRlsEn") Boolean otsdRlsEn);

    long selectFlightPhotoLayerListTotCnt(@Param("request") FlightPhotoSearchVO searchVO,
                                           @Param("otsdRlsEn") Boolean otsdRlsEn);

    FlightPhotoLayerVO selectFlightPhotoLayerById(int flightPhotoLyrId);

    List<FlightPhotoLayerVO> selectFlightPhotoLayerInIds(@Param("layerIds") Set<Integer> layerIds);
}
