<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL Map 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd">
<sqlMap namespace="MetaSelect">

  
  
  <statement id="selectSyncItem" parameterClass="java.util.HashMap" resultClass="java.util.HashMap">
    SELECT ITEM_ID
         , ITEM_KNM
         , ITEM_ENM
         , DATA_TYPE
         , DATA_LENGTH
         , DATA_SCALE
         , DESCRIPTION
         , TO_CHAR(CHNG_DTTM , 'YYYYMMDDHH24MISS') CHNG_DTTM
         , DEL_YN 
      FROM WISEMETA.VW_ITEM 
     WHERE CHNG_DTTM &gt;= (TO_DATE ( #time# , 'YYYYMMDDHH24MISS') - (1/24/60*7))
  </statement>
  
  <statement id="selectSyncTelegram" parameterClass="java.util.HashMap" resultClass="java.util.HashMap">
    SELECT TELEGRAM_ID
         , TELEGRAM_KNM
         , TELEGRAM_ENM
         , DATA_TYPE
         , DATA_LENGTH
         , DATA_SCALE
         , DESCRIPTION
         , TO_CHAR(CHNG_DTTM , 'YYYYMMDDHH24MISS') CHNG_DTTM
         , DEL_YN 
      FROM WISEMETA.VW_TELEGRAM 
     WHERE CHNG_DTTM &gt;= (TO_DATE ( #time#, 'YYYYMMDDHH24MISS') - (1/24/60*7))
  </statement>


  <statement id="selectSyncStdErrMsg" parameterClass="java.util.HashMap" resultClass="java.util.HashMap">
    SELECT OBJ_ID
         , STD_ERR_CD_YN
         , ERR_CD
         , STSY_ERR_CD
         , ERR_TLG_LAN_DSCD
         , MSG_DIT
         , ERR_TP_CD
         , ERR_CD_US_YN
         , IPT_MSG_CD_YN
         , ISD_ERR_CAS_CTS
         , OSD_ERR_CAS_CTS
         , ERR_CD_APL_DT
         , ACTN_CD
         , OF_ACTN_CD
         , TO_CHAR(CHNG_DTTM , 'YYYYMMDDHH24MISS') CHNG_DTTM
         , DEL_YN
      FROM WISEMETA.VW_STD_ERR_MSG
     WHERE CHNG_DTTM &gt;= (TO_DATE ( #time#, 'YYYYMMDDHH24MISS') - (1/24/60*7))
  </statement>

  <statement id="selectSyncCode" parameterClass="java.util.HashMap" resultClass="java.util.HashMap">
    SELECT CODE_ID
	     , CD_KNM
	     , VLD_VAL
	     , CD_IDTF_ID
	     , CLSF_TYPE_ID
	     , CD_ENM
	     , CD_CLSF_TYPE_NM
	     , VLD_VAL_SNO
	     , VLD_VAL_NM
	     , VLD_VAL_FRMAL_NM
	     , UPPER_VLD_VAL
	     , UPPSER_VLD_VAL_NM
	     , DOMN_KNM
	     , DOMN_ENM
	     , TO_CHAR(VLD_SDT , 'YYYYMMDDHH24MISS') VLD_SDT
	     , TO_CHAR(VLD_EDT , 'YYYYMMDDHH24MISS') VLD_EDT
	     , TO_CHAR(CRT_DTTI , 'YYYYMMDDHH24MISS') CRT_DTTI
	     , TO_CHAR(CHNG_DTTM , 'YYYYMMDDHH24MISS') CHNG_DTTM
	     , STD_COD_ID
	     , DATA_TYPE
	     , DATA_LENGTH
	     , DEL_YN
      FROM WISEMETA.VW_CODE
     WHERE CHNG_DTTM &gt;= (TO_DATE ( #time#, 'YYYYMMDDHH24MISS') - (1/24/60*7))
  </statement>

  <statement id="selectSyncActnMsg" parameterClass="java.util.HashMap" resultClass="java.util.HashMap">
    SELECT OBJ_ID
    	, ERR_ACT_CD
        , ERR_TLG_LAN_DSCD
        , CHNL_MSG_CD
        , CHNL_TYP_CD
        , ACTN_MSG_CTNT
        , USE_YN
        , ACTN_CD_APCL_DT
        , MCI_LNK_YN
        , MCI_LNK_DT
        , ACTN_DEL_YN
        , TO_CHAR(CHNG_DTTM , 'YYYYMMDDHH24MISS') CHNG_DTTM
        , DEL_YN
      FROM WISEMETA.VW_ACTN_MSG
     WHERE CHNG_DTTM &gt;= (TO_DATE ( #time#, 'YYYYMMDDHH24MISS') - (1/24/60*7))
  </statement>




 
</sqlMap>
