사용자정의 컬럼 추가

main
이범준 2 days ago
parent 513aa55119
commit 6c5f5f478b

@ -315,6 +315,31 @@ public class MessageEntity extends AbstractEntity {
*/ */
private String failRsn; private String failRsn;
/**
*
*/
private String reqSys;
/**
*
*/
private String msgPrps;
/**
*
*/
private String msgDtlPrps;
/**
*
*/
private String sggCd;
/**
*
*/
private String taskSeCd;
/** /**
* 1,2,3 * 1,2,3
*/ */

@ -77,8 +77,21 @@ public class MessageInterfaceController extends AbstractController {
} }
String msgDtlPrps = (String) apiSpec.get("msgDtlPrps"); //상세목적 String msgDtlPrps = (String) apiSpec.get("msgDtlPrps"); //상세목적
if(msgDtlPrps == null) {
msgDtlPrps = "";
}
String taskSeCd = (String) apiSpec.get("taskSeCd"); //과태료업무구분
if(taskSeCd == null) {
taskSeCd = "";
}
String sggCd = (String) apiSpec.get("sggCd"); //시군구코드 String sggCd = (String) apiSpec.get("sggCd"); //시군구코드
if(EgovStringUtil.null2void(sggCd).equals("")) {
mav.addObject("failRsn", "시군구코드가 없습니다.");
mav.addObject("saved", false);
return mav;
}
String databaseId = databaseIdProvider.getDatabaseId(dataSource); String databaseId = databaseIdProvider.getDatabaseId(dataSource);
@ -88,6 +101,12 @@ public class MessageInterfaceController extends AbstractController {
MessageEntity messageEntity = new MessageEntity(); MessageEntity messageEntity = new MessageEntity();
messageEntity.setSubId(nuri2Id); messageEntity.setSubId(nuri2Id);
messageEntity.setSggCd(sggCd);
messageEntity.setReqSys(reqSys);
messageEntity.setMsgPrps(msgPrps);
messageEntity.setMsgDtlPrps(msgDtlPrps);
messageEntity.setTaskSeCd(taskSeCd);
String trnsmisNo = (String) req.get("trnsmisNo"); String trnsmisNo = (String) req.get("trnsmisNo");
String recptnNo = (String) req.get("recptnNo"); String recptnNo = (String) req.get("recptnNo");
String mssageCn = (String) req.get("mssageCn"); String mssageCn = (String) req.get("mssageCn");
@ -193,4 +212,5 @@ public class MessageInterfaceController extends AbstractController {
result = result.replaceAll("\n", "\\\\r\\\\n"); result = result.replaceAll("\n", "\\\\r\\\\n");
return result; return result;
} }
} }

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

Loading…
Cancel
Save