diff --git a/src/main/java/cokr/xit/interfaces/message/MessageEntity.java b/src/main/java/cokr/xit/interfaces/message/MessageEntity.java index d4be517..69d2169 100644 --- a/src/main/java/cokr/xit/interfaces/message/MessageEntity.java +++ b/src/main/java/cokr/xit/interfaces/message/MessageEntity.java @@ -315,6 +315,31 @@ public class MessageEntity extends AbstractEntity { */ private String failRsn; + /** + * 메시지 발송 요청 시스템 + */ + private String reqSys; + + /** + * 메시지 발송 목적 + */ + private String msgPrps; + + /** + * 메시지 발송 상세 목적 + */ + private String msgDtlPrps; + + /** + * 시군구 코드 + */ + private String sggCd; + + /** + * 과태료 업무 구분 코드 + */ + private String taskSeCd; + /** * 1차,2차,3차 메시지 유형 설정 */ diff --git a/src/main/java/cokr/xit/interfaces/message/web/MessageInterfaceController.java b/src/main/java/cokr/xit/interfaces/message/web/MessageInterfaceController.java index b05eb98..b67e8dd 100644 --- a/src/main/java/cokr/xit/interfaces/message/web/MessageInterfaceController.java +++ b/src/main/java/cokr/xit/interfaces/message/web/MessageInterfaceController.java @@ -77,8 +77,21 @@ public class MessageInterfaceController extends AbstractController { } 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"); //시군구코드 + if(EgovStringUtil.null2void(sggCd).equals("")) { + mav.addObject("failRsn", "시군구코드가 없습니다."); + mav.addObject("saved", false); + return mav; + } String databaseId = databaseIdProvider.getDatabaseId(dataSource); @@ -88,6 +101,12 @@ public class MessageInterfaceController extends AbstractController { MessageEntity messageEntity = new MessageEntity(); 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 recptnNo = (String) req.get("recptnNo"); String mssageCn = (String) req.get("mssageCn"); @@ -193,4 +212,5 @@ public class MessageInterfaceController extends AbstractController { result = result.replaceAll("\n", "\\\\r\\\\n"); return result; } + } diff --git a/src/main/resources/sql/mapper/interfaces/message-mapper.xml b/src/main/resources/sql/mapper/interfaces/message-mapper.xml index 13eb521..7c4211f 100644 --- a/src/main/resources/sql/mapper/interfaces/message-mapper.xml +++ b/src/main/resources/sql/mapper/interfaces/message-mapper.xml @@ -5,70 +5,79 @@