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); } }