<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="kr.gmtc.gw.standstatus.database.datasource2.IcSelectMepper">

    <select id="select_flt_dep" resultType="kr.gmtc.gw.standstatus.database.dto.DataLoadHashMap">
       <![CDATA[

            select  a.*, (select uic.FUN_GET_ACDM_STTUS_YN('D', a.dep_no, 'TAX') from dual) as tax_yn
            from uic.V_FLT_DEP a
            where a.exp_stand_off_dt between to_char(sysdate -1,'yyyymmdd')||'1500' and to_char(sysdate,'yyyymmdd')||'1459'
            and a.stand_no in ( select stand_no from ucm.SACP_CCTVID_MAPPING where cctv_ty = '3' )
            and a.flt_sttus <> 'END'
            and (select uic.FUN_GET_ACDM_STTUS_YN('D', a.dep_no, 'BOR') from dual) = 'Y'
            order by exp_stand_off_dt
        
        ]]>
    </select>

    <select id="select_flt_arr" resultType="kr.gmtc.gw.standstatus.database.dto.DataLoadHashMap">
       <![CDATA[

            select *
            from uic.V_FLT_ARR a
            where a.exp_arr_dt between to_char(sysdate -1,'yyyymmdd')||'1500' and to_char(sysdate,'yyyymmdd')||'1459'
            and a.stand_no in ( select stand_no from ucm.SACP_CCTVID_MAPPING where cctv_ty = '3' )
            and flt_sttus = 'START'
            order by exp_arr_dt
        
        ]]>
    </select>

    <select id="getAnalsIdSeq" resultType="int">
		SELECT UIC.NTCN_SEQ.NEXTVAL FROM DUAL
	</select>
    

</mapper>