feat: align AxhubMciComponent with TmMciComponent (DRTM_CD, USER_ID, BizException)
All checks were successful
Deploy Tools / deploy (push) Successful in 1m52s

This commit is contained in:
jade
2026-08-19 17:08:44 +09:00
parent fe1ed9ea65
commit a7450cb1db

View File

@@ -3,6 +3,7 @@ package io.shinhanlife.dap.lib.integration.mci.component;
import io.shinhanlife.dap.lib.session.dto.SessionDto; import io.shinhanlife.dap.lib.session.dto.SessionDto;
import io.shinhanlife.dap.lib.util.SessionUtil; import io.shinhanlife.dap.lib.util.SessionUtil;
import io.shinhanlife.dap.lib.config.GlowCommunicationProperties; import io.shinhanlife.dap.lib.config.GlowCommunicationProperties;
import io.shinhanlife.glow.BizException;
import io.shinhanlife.glow.communication.dto.CommonHeader; import io.shinhanlife.glow.communication.dto.CommonHeader;
import io.shinhanlife.glow.communication.dto.HeaderDefaults; import io.shinhanlife.glow.communication.dto.HeaderDefaults;
import io.shinhanlife.glow.communication.dto.Transfer; import io.shinhanlife.glow.communication.dto.Transfer;
@@ -70,6 +71,8 @@ public class AxhubMciComponent {
commonHeaderMap.put(HeaderDefaults.OGNZ_ASRT_CD, sessionDto.getOgnzAsrtCd()); commonHeaderMap.put(HeaderDefaults.OGNZ_ASRT_CD, sessionDto.getOgnzAsrtCd());
commonHeaderMap.put(HeaderDefaults.OGNZ_LEVE_CD, sessionDto.getOgnzLeveCd()); commonHeaderMap.put(HeaderDefaults.OGNZ_LEVE_CD, sessionDto.getOgnzLeveCd());
commonHeaderMap.put(HeaderDefaults.SCRN_ID, sessionDto.getPrgrId()); commonHeaderMap.put(HeaderDefaults.SCRN_ID, sessionDto.getPrgrId());
commonHeaderMap.put(HeaderDefaults.DRTM_CD, sessionDto.getPrafDutyCd());
commonHeaderMap.put(HeaderDefaults.USER_ID, sessionDto.getPrafNo());
} }
commonHeaderMap.put(HeaderDefaults.INDV_CTIN_ROLE_CD, IndvCtinRoleTyp.CD_Z99.getCode()); commonHeaderMap.put(HeaderDefaults.INDV_CTIN_ROLE_CD, IndvCtinRoleTyp.CD_Z99.getCode());
@@ -87,7 +90,14 @@ public class AxhubMciComponent {
// LOG 저장 (AXHUB 방식 로깅) // LOG 저장 (AXHUB 방식 로깅)
CommonHeader reqHeader = (CommonHeader) request.getHeader(); CommonHeader reqHeader = (CommonHeader) request.getHeader();
log.info("[AxhubMciComponent] {} MCI 호출시작 (수신서비스: {})", reqHeader.getItrfId(), reqHeader.getRcvSvcId()); log.info("[AxhubMciComponent] {} MCI 호출시작 (수신서비스: {})", reqHeader.getItrfId(), reqHeader.getRcvSvcId());
Transfer<O> response = (Transfer<O>) mci.sync(request);
Transfer<O> response;
try {
response = (Transfer<O>) mci.sync(request);
} catch (RuntimeException e) {
throw new BizException("CST00477", new String[]{"대내 MCI 호출 결과 처리중 오류가 발생했습니다."}, e);
}
log.info("[AxhubMciComponent] {} MCI 호출종료 (수신서비스: {})", reqHeader.getItrfId(), reqHeader.getRcvSvcId()); log.info("[AxhubMciComponent] {} MCI 호출종료 (수신서비스: {})", reqHeader.getItrfId(), reqHeader.getRcvSvcId());
if (response != null && response.getHeader() != null) { if (response != null && response.getHeader() != null) {