에러응답 처리 수정

This commit is contained in:
curry772
2026-06-17 13:53:46 +09:00
parent 7b9862e34b
commit cc315f2ad0
6 changed files with 200 additions and 11 deletions
@@ -38,15 +38,15 @@ public class InterfaceMapperDJB extends DefaultInterfaceMapper {
if(StringUtils.isNotBlank(standardMessage.getEaiSvcCd()))
return standardMessage.getEaiSvcCd();
// String interfaceId = getInterfaceId(standardMessage);
String txId = getServiceId(standardMessage);
String eaiInterfaceId = getInterfaceId(standardMessage);
// String txId = getServiceId(standardMessage);
String sendRecvDvcd = getSendRecvDivision(standardMessage); // S | R
String inExDivision = getInExDivision(standardMessage); // 1 | 2
if(StringUtils.isEmpty(txId))
throw new RuntimeException("not found txid");
return API_ID_PREFIX + txId + sendRecvDvcd + StringUtils.defaultString(inExDivision);
if(StringUtils.isEmpty(eaiInterfaceId))
throw new RuntimeException("not found if_id");
return API_ID_PREFIX + StringUtils.substring(eaiInterfaceId, 2) + sendRecvDvcd + StringUtils.defaultString(inExDivision);
}
// ----------------------------------------------------------------
@@ -71,6 +71,7 @@ public class StandardMessageCoordinatorDJB extends DefaultStandardMessageCoordin
public static final String MSG_OUTP_ATRB_CD = "MSG.MAIN_MSG.outp_atrb_cd";
public static final String MSG_OUTP_MSG_CD = "MSG.MAIN_MSG.outp_msg_cd";
public static final String MSG_OUTP_MSG_CTNT = "MSG.MAIN_MSG.outp_msg_ctnt";
public static final String MSG_OUTP_MSG_DESC = "MSG.MAIN_MSG.outp_msg_desc";
public static final String MSG_LIST_ROWCNT = "MSG.MAIN_MSG.msg_list_rowcnt";
public static final String MSG_LIST = "MSG.MSG_LIST";
@@ -170,7 +171,7 @@ public class StandardMessageCoordinatorDJB extends DefaultStandardMessageCoordin
// 에러코드/메시지 변환
String siteErrCode = StringUtils.defaultString(MessageUtil.getTobeCode(errCode));
String siteErrMsg = StringUtils.defaultString(MessageUtil.getTobeMessage(errCode));
String siteErrDesc = StringUtils.defaultString(MessageUtil.getTobeMessage(errCode));
String siteErrDesc = StringUtils.defaultString(MessageUtil.getTobeDesc(errCode));
// MSG 영역 활성화
StandardItem msgItem = standardMessage.findItem("MSG");