feat: ktgbs api fix

main
Jonguk. Lim 3 months ago
parent 0c26873d0c
commit d18f1b3865

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

Loading…
Cancel
Save