|
|
|
@ -5,70 +5,79 @@
|
|
|
|
|
<select id="selectList" parameterType="cokr.xit.interfaces.message.MessageQuery" resultType="dataObject">
|
|
|
|
|
/* 문자전송 목록(msgMapper.selectList) */
|
|
|
|
|
<include refid="utility.paging-prefix"/>
|
|
|
|
|
SELECT MSG_KEY
|
|
|
|
|
, SUB_ID
|
|
|
|
|
, USER_KEY
|
|
|
|
|
, USER_GROUP
|
|
|
|
|
, USER_ID
|
|
|
|
|
, USER_JOBID
|
|
|
|
|
, CENTER_KEY
|
|
|
|
|
, MSG_PRIORITY
|
|
|
|
|
, MSG_STATE
|
|
|
|
|
, GET_CODE_NM('MSG001',MSG_STATE) AS MSG_STATE_NM
|
|
|
|
|
, INPUT_DATE
|
|
|
|
|
, INPUT_DT
|
|
|
|
|
, RES_DATE
|
|
|
|
|
, RES_DT
|
|
|
|
|
, QUE_DATE
|
|
|
|
|
, SENT_DATE
|
|
|
|
|
, RSLT_DATE
|
|
|
|
|
, REPORT_DATE
|
|
|
|
|
, RSLT_CODE
|
|
|
|
|
, RSLT_NET
|
|
|
|
|
, RSLT_TYPE
|
|
|
|
|
, SENT_COUNT
|
|
|
|
|
, HISTORY_MSG_TYPE
|
|
|
|
|
, HISTORY_RSLT_CODE
|
|
|
|
|
, IDENTIFIER
|
|
|
|
|
, PHONE
|
|
|
|
|
, CALLBACK
|
|
|
|
|
, MSG_TYPE_1
|
|
|
|
|
, CONTENTS_TYPE_1
|
|
|
|
|
, QUE_DATE_1
|
|
|
|
|
, SENT_DATE_1
|
|
|
|
|
, MSG_TYPE_2
|
|
|
|
|
, CONTENTS_TYPE_2
|
|
|
|
|
, QUE_DATE_2
|
|
|
|
|
, SENT_DATE_2
|
|
|
|
|
, MSG_TYPE_3
|
|
|
|
|
, CONTENTS_TYPE_3
|
|
|
|
|
, QUE_DATE_3
|
|
|
|
|
, SENT_DATE_3
|
|
|
|
|
, XMS_RSLT_CODE
|
|
|
|
|
, XMS_RSLT_NET
|
|
|
|
|
, XMS_RSLT_DATE
|
|
|
|
|
, XMS_REPORT_DATE
|
|
|
|
|
, ALT_RSLT_CODE
|
|
|
|
|
, ALT_RSLT_NET
|
|
|
|
|
, ALT_RSLT_DATE
|
|
|
|
|
, ALT_REPORT_DATE
|
|
|
|
|
, RCS_RSLT_CODE
|
|
|
|
|
, RCS_RSLT_NET
|
|
|
|
|
, RCS_RSLT_DATE
|
|
|
|
|
, RCS_REPORT_DATE
|
|
|
|
|
, XMS_SUBJECT
|
|
|
|
|
, XMS_TEXT
|
|
|
|
|
, XMS_FILE_NAME_1
|
|
|
|
|
, XMS_FILE_NAME_2
|
|
|
|
|
, XMS_FILE_NAME_3
|
|
|
|
|
, ALT_COUNTRY_CODE
|
|
|
|
|
, ALT_SENDER_KEY
|
|
|
|
|
, ALT_TEMPLATE_CODE
|
|
|
|
|
, ALT_JSON
|
|
|
|
|
, RCS_BRAND_KEY
|
|
|
|
|
, RCS_MASSAGE_BASE_ID
|
|
|
|
|
, RCS_JSON
|
|
|
|
|
FROM NURI2_NRMSG_DATA
|
|
|
|
|
SELECT A.MSG_KEY
|
|
|
|
|
, A.SUB_ID
|
|
|
|
|
, A.USER_KEY
|
|
|
|
|
, A.USER_GROUP
|
|
|
|
|
, A.USER_ID
|
|
|
|
|
, A.USER_JOBID
|
|
|
|
|
, A.CENTER_KEY
|
|
|
|
|
, A.MSG_PRIORITY
|
|
|
|
|
, A.MSG_STATE
|
|
|
|
|
, GET_CODE_NM('MSG001',A.MSG_STATE) AS MSG_STATE_NM
|
|
|
|
|
, A.INPUT_DATE
|
|
|
|
|
, A.INPUT_DT
|
|
|
|
|
, A.RES_DATE
|
|
|
|
|
, A.RES_DT
|
|
|
|
|
, A.QUE_DATE
|
|
|
|
|
, A.SENT_DATE
|
|
|
|
|
, A.RSLT_DATE
|
|
|
|
|
, A.REPORT_DATE
|
|
|
|
|
, A.RSLT_CODE
|
|
|
|
|
, A.RSLT_NET
|
|
|
|
|
, A.RSLT_TYPE
|
|
|
|
|
, A.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A.RCS_JSON
|
|
|
|
|
, A.REQ_SYS
|
|
|
|
|
, GET_CODE_NM('MSG005', A.REQ_SYS) AS REQ_SYS_NM
|
|
|
|
|
, A.MSG_PRPS
|
|
|
|
|
, GET_CODE_NM('MSG006', A.MSG_PRPS) AS MSG_PRPS_NM
|
|
|
|
|
, A.MSG_DTL_PRPS
|
|
|
|
|
, A.SGG_CD
|
|
|
|
|
, (SELECT SGG_NM FROM TB_SGG WHERE SGG_CD = A.SGG_CD) AS SGG_NM
|
|
|
|
|
, A.TASK_SE_CD
|
|
|
|
|
, GET_CODE_NM('FIM054', A.TASK_SE_CD) AS TASK_SE_NM
|
|
|
|
|
FROM NURI2_NRMSG_DATA A
|
|
|
|
|
WHERE 1=1
|
|
|
|
|
AND INPUT_DT <![CDATA[>=]]> CONCAT(#{schInputYmdFrom},'000000')
|
|
|
|
|
AND INPUT_DT <![CDATA[<=]]> CONCAT(#{schInputYmdTo},'235959')
|
|
|
|
@ -115,6 +124,11 @@ INSERT
|
|
|
|
|
<!-- , ALT_RSLT_CODE, ALT_RSLT_NET, ALT_RSLT_DATE, ALT_REPORT_DATE -->
|
|
|
|
|
<!-- , RCS_RSLT_CODE, RCS_RSLT_NET, RCS_RSLT_DATE, RCS_REPORT_DATE -->
|
|
|
|
|
<!-- , XMS_FILE_NAME_1, XMS_FILE_NAME_2, XMS_FILE_NAME_3 -->
|
|
|
|
|
, REQ_SYS
|
|
|
|
|
, MSG_PRPS
|
|
|
|
|
, MSG_DTL_PRPS
|
|
|
|
|
, SGG_CD
|
|
|
|
|
, TASK_SE_CD
|
|
|
|
|
)
|
|
|
|
|
VALUES (
|
|
|
|
|
#{subId}
|
|
|
|
@ -164,6 +178,11 @@ VALUES (
|
|
|
|
|
<!-- , #{altRsltCode}, #{altRsltNet}, #{altRsltDate}, #{altReportDate} -->
|
|
|
|
|
<!-- , #{rcsRsltCode}, #{rcsRsltNet}, #{rcsRsltDate}, #{rcsReportDate} -->
|
|
|
|
|
<!-- , #{xmsFileName1}, #{xmsFileName2}, #{xmsFileName3} -->
|
|
|
|
|
, #{reqSys}
|
|
|
|
|
, #{msgPrps}
|
|
|
|
|
, #{msgDtlPrps}
|
|
|
|
|
, #{sggCd}
|
|
|
|
|
, #{taskSeCd}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|