From 42affde64904cff4581bc60cbad7fb05943b97eb Mon Sep 17 00:00:00 2001 From: limju Date: Tue, 24 Oct 2023 18:43:30 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20KT=20=EC=82=AC=EC=A0=84/=EB=B3=B8=20?= =?UTF-8?q?=EB=AC=B8=EC=9E=90=20=EC=88=98=EC=8B=A0=20=EA=B2=B0=EA=B3=BC=20?= =?UTF-8?q?=EC=A0=84=EC=86=A1=20API=20=EB=B0=98=EC=98=81=EC=A4=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/biz/kt/service/BizKtMmsService.java | 2 - .../xit/ens/epost/service/EpostService.java | 1 + .../kr/xit/ens/kt/service/KtMmsService.java | 46 +++++++++++-------- .../xit/ens/pplus/service/PplusService.java | 1 + 4 files changed, 29 insertions(+), 21 deletions(-) diff --git a/mens-api/src/main/java/kr/xit/biz/kt/service/BizKtMmsService.java b/mens-api/src/main/java/kr/xit/biz/kt/service/BizKtMmsService.java index 00f170c..fa42dd1 100644 --- a/mens-api/src/main/java/kr/xit/biz/kt/service/BizKtMmsService.java +++ b/mens-api/src/main/java/kr/xit/biz/kt/service/BizKtMmsService.java @@ -121,7 +121,6 @@ public class BizKtMmsService extends EgovAbstractServiceImpl implements IBizKtMm KtMainSendRequest.builder() .signguCode(reqDTO.getSignguCode()) .ffnlgCode(reqDTO.getFfnlgCode()) - .profile(ApiConstants.PROFILE) //.serviceCd("cache") //.serviceKey("cache") .msgCd("db") @@ -168,7 +167,6 @@ public class BizKtMmsService extends EgovAbstractServiceImpl implements IBizKtMm KtMsgRsltRequest.builder() .signguCode(reqDTO.getSignguCode()) .ffnlgCode(reqDTO.getFfnlgCode()) - .profile(ApiConstants.PROFILE) .reqs(reqs) .build() ); diff --git a/mens-api/src/main/java/kr/xit/ens/epost/service/EpostService.java b/mens-api/src/main/java/kr/xit/ens/epost/service/EpostService.java index 9d59f0a..6b44b32 100644 --- a/mens-api/src/main/java/kr/xit/ens/epost/service/EpostService.java +++ b/mens-api/src/main/java/kr/xit/ens/epost/service/EpostService.java @@ -56,6 +56,7 @@ public class EpostService extends EgovAbstractServiceImpl implements IEpostServi reqDTO.setSignguCode(null); reqDTO.setFfnlgCode(null); + reqDTO.setProfile(null); CmmEnsUtils.validate(reqDTO); return webClient.exchange( diff --git a/mens-api/src/main/java/kr/xit/ens/kt/service/KtMmsService.java b/mens-api/src/main/java/kr/xit/ens/kt/service/KtMmsService.java index 3b0a1e3..f9ec935 100644 --- a/mens-api/src/main/java/kr/xit/ens/kt/service/KtMmsService.java +++ b/mens-api/src/main/java/kr/xit/ens/kt/service/KtMmsService.java @@ -271,7 +271,6 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi case CHUMO -> reqDTO.setSignguCode(SignguCode.FUNERAL.getCode()); } reqDTO.setFfnlgCode(ApiConstants.FFNLN_CODE); - reqDTO.setProfile(ApiConstants.PROFILE); final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode()); @@ -326,8 +325,9 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi @Override public KtCommonResponse blacklist(final KtBlacklistRequest reqDTO) { final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode()); - //reqDTO.setServiceCd(ktMnsInfo.get); - //reqDTO.setServiceKey(ktMnsInfo.get); + reqDTO.setSignguCode(null); + reqDTO.setFfnlgCode(null); + reqDTO.setProfile(null); CmmEnsUtils.validate(reqDTO); return webClient.exchangeKt( @@ -342,8 +342,9 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi @Override public KtSendSttcResponse sendSttc(final KtSendSttcRequest reqDTO) { final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode()); - //reqDTO.setServiceCd(ktMnsInfo.get); - //reqDTO.setServiceKey(ktMnsInfo.get); + reqDTO.setSignguCode(null); + reqDTO.setFfnlgCode(null); + reqDTO.setProfile(null); CmmEnsUtils.validate(reqDTO); return webClient.exchangeKt( @@ -358,8 +359,9 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi @Override public KtSendSttcDtlResponse sendSttcDtl(final KtSendSttcDtlRequest reqDTO) { final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode()); - //reqDTO.setServiceCd(ktMnsInfo.get); - //reqDTO.setServiceKey(ktMnsInfo.get); + reqDTO.setSignguCode(null); + reqDTO.setFfnlgCode(null); + reqDTO.setProfile(null); CmmEnsUtils.validate(reqDTO); return webClient.exchangeKt( @@ -374,8 +376,9 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi @Override public KtCommonResponse whitelist(final KtWhitelistRequest reqDTO) { final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode()); - //reqDTO.setServiceCd(ktMnsInfo.get); - //reqDTO.setServiceKey(ktMnsInfo.get); + reqDTO.setSignguCode(null); + reqDTO.setFfnlgCode(null); + reqDTO.setProfile(null); CmmEnsUtils.validate(reqDTO); return webClient.exchangeKt( @@ -416,8 +419,9 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi @Override public KtAcmdCerfResponse cerfAcmd(final KtAcmdCerfRequest reqDTO) { final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode()); - //reqDTO.setServiceCd(ktMnsInfo.get); - //reqDTO.setServiceKey(ktMnsInfo.get); + reqDTO.setSignguCode(null); + reqDTO.setFfnlgCode(null); + reqDTO.setProfile(null); CmmEnsUtils.validate(reqDTO); return webClient.exchangeKt( @@ -432,8 +436,9 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi @Override public KtCommonResponse excaAcmd(KtTokenExcaRequest reqDTO) { final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode()); - //reqDTO.setServiceCd(ktMnsInfo.get); - //reqDTO.setServiceKey(ktMnsInfo.get); + reqDTO.setSignguCode(null); + reqDTO.setFfnlgCode(null); + reqDTO.setProfile(null); CmmEnsUtils.validate(reqDTO); return webClient.exchangeKt( @@ -448,8 +453,9 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi @Override public KtExcaResponse exca(final KtExcaRequest reqDTO) { final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode()); - //reqDTO.setServiceCd(ktMnsInfo.get); - //reqDTO.setServiceKey(ktMnsInfo.get); + reqDTO.setSignguCode(null); + reqDTO.setFfnlgCode(null); + reqDTO.setProfile(null); CmmEnsUtils.validate(reqDTO); return webClient.exchangeKt( @@ -464,8 +470,9 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi @Override public KtAcmdInfoResponse infoAcmd(final KtAcmdInfoRequest reqDTO) { final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode()); - //reqDTO.setServiceCd(ktMnsInfo.get); - //reqDTO.setServiceKey(ktMnsInfo.get); + reqDTO.setSignguCode(null); + reqDTO.setFfnlgCode(null); + reqDTO.setProfile(null); CmmEnsUtils.validate(reqDTO); return webClient.exchangeKt( @@ -480,8 +487,9 @@ public class KtMmsService extends EgovAbstractServiceImpl implements IKtMmsServi @Override public KtAcmdInfoCfmResponse cfmAcmd(final KtAcmdInfoCfmRequest reqDTO) { final CmmEnsRlaybsnmDTO ktMnsInfo = CmmKtMmsUtils.getRlaybsnmInfo(reqDTO.getSignguCode(), reqDTO.getFfnlgCode()); - //reqDTO.setServiceCd(ktMnsInfo.get); - //reqDTO.setServiceKey(ktMnsInfo.get); + reqDTO.setSignguCode(null); + reqDTO.setFfnlgCode(null); + reqDTO.setProfile(null); CmmEnsUtils.validate(reqDTO); return webClient.exchangeKt( diff --git a/mens-api/src/main/java/kr/xit/ens/pplus/service/PplusService.java b/mens-api/src/main/java/kr/xit/ens/pplus/service/PplusService.java index 66fcb5d..c4c33de 100644 --- a/mens-api/src/main/java/kr/xit/ens/pplus/service/PplusService.java +++ b/mens-api/src/main/java/kr/xit/ens/pplus/service/PplusService.java @@ -139,6 +139,7 @@ public class PplusService extends EgovAbstractServiceImpl implements IPplusServi reqDTO.setSignguCode(null); reqDTO.setFfnlgCode(null); + reqDTO.setProfile(null); return webClient.exchange( HOST + STATUS, HttpMethod.POST,