From d18f1b38654eff86fe97a331f13f2613f50a6d06 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Mon, 26 Aug 2024 18:06:11 +0900 Subject: [PATCH] feat: ktgbs api fix --- .../java/kr/xit/ens/ktgbs/service/KtGbsService.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mens-api/src/main/java/kr/xit/ens/ktgbs/service/KtGbsService.java b/mens-api/src/main/java/kr/xit/ens/ktgbs/service/KtGbsService.java index 90c6f92..34c9b4b 100644 --- a/mens-api/src/main/java/kr/xit/ens/ktgbs/service/KtGbsService.java +++ b/mens-api/src/main/java/kr/xit/ens/ktgbs/service/KtGbsService.java @@ -99,7 +99,7 @@ public class KtGbsService extends AbstractService implements IKtGbsService { @Override @TraceLogging public KtCommonDTO.KtCommonResponse cfmToken(final KtGbsDTO.TokenConfirmRequest reqDTO) { - final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode()); + final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO); reqDTO.setServiceCd(ktMnsInfo.getKtServiceCode()); reqDTO.setSignguCode(null); reqDTO.setFfnlgCode(null); @@ -118,7 +118,7 @@ public class KtGbsService extends AbstractService implements IKtGbsService { @Override @TraceLogging public KtCommonDTO.KtCommonResponse readToken(final KtGbsDTO.TokenReadRequest reqDTO) { - final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode()); + final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO); reqDTO.setServiceCd(ktMnsInfo.getKtServiceCode()); reqDTO.setMmsRdgTmst(DateUtils.getTodayAndNowTime("yyyyMMddHHmmss")); reqDTO.setSignguCode(null); @@ -139,7 +139,7 @@ public class KtGbsService extends AbstractService implements IKtGbsService { @Override @TraceLogging public KtCommonDTO.KtCommonResponse mainSend(final KtGbsDTO.MsgSendRequest reqDTO) { - final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode()); + final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO); reqDTO.setServiceCd(ktMnsInfo.getKtServiceCode()); reqDTO.setSignguCode(null); reqDTO.setFfnlgCode(null); @@ -155,7 +155,7 @@ public class KtGbsService extends AbstractService implements IKtGbsService { ); } - private CmmEnsRlaybsnmDTO getRlaybsnmInfo(final String sigungCode, final String ffnlgCode) { - return CmmEnsUtils.getRlaybsnmInfo(sigungCode, ffnlgCode, ApiConstants.SndngSeCode.KT_GIBIS); + private CmmEnsRlaybsnmDTO getRlaybsnmInfo(final KtCommonDTO.KtMnsRequest request){ + return CmmEnsUtils.getRlaybsnmInfo(request.getSignguCode(), request.getFfnlgCode(), ApiConstants.SndngSeCode.KT_BC); } }