feat: ktgbs api fix

main
Jonguk. Lim 3 months ago
parent 1d1f2725ca
commit 0c26873d0c

@ -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);
final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode());
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);
final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode());
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);
final CmmEnsRlaybsnmDTO ktMnsInfo = getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode());
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 KtCommonDTO.KtMnsRequest request){
return CmmEnsUtils.getRlaybsnmInfo(request.getSignguCode(), request.getFfnlgCode(), ApiConstants.SndngSeCode.KT_BC);
private CmmEnsRlaybsnmDTO getRlaybsnmInfo(final String sigungCode, final String ffnlgCode) {
return CmmEnsUtils.getRlaybsnmInfo(sigungCode, ffnlgCode, ApiConstants.SndngSeCode.KT_GIBIS);
}
}

Loading…
Cancel
Save