From 547f582e143e1dd6b0671679da24821a6cfa1053 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Tue, 11 Jun 2024 14:56:41 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20NIMS=20API=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../biz/nims/service/bean/BizNimsServiceBean.java | 11 ----------- .../cokr/xit/adds/inf/nims/model/NimsApiRequest.java | 2 +- .../inf/nims/service/bean/InfNimsServiceBean.java | 8 ++------ src/main/resources/application.yml | 2 +- 4 files changed, 4 insertions(+), 19 deletions(-) diff --git a/src/main/java/cokr/xit/adds/biz/nims/service/bean/BizNimsServiceBean.java b/src/main/java/cokr/xit/adds/biz/nims/service/bean/BizNimsServiceBean.java index 71695f4..c6c42dc 100644 --- a/src/main/java/cokr/xit/adds/biz/nims/service/bean/BizNimsServiceBean.java +++ b/src/main/java/cokr/xit/adds/biz/nims/service/bean/BizNimsServiceBean.java @@ -589,17 +589,6 @@ public class BizNimsServiceBean extends AbstractServiceBean implements BizNimsSe List rtnList = new ArrayList<>(); for (NimsApiDto.DsuseRptInfo nimsDto : nimsList) { - // FIXME: API 에서 RPT_TY_CD가 코드값으로 적용된 것 확인후 삭제 /////////////////////// - if("신규".equals(nimsDto.getRptTyCd())) { - nimsDto.setRptTyCd(RPT_TY_CD.NEW.getCode()); - }else if("취소".equals(nimsDto.getRptTyCd())) { - nimsDto.setRptTyCd(RPT_TY_CD.CANCEL.getCode()); - }else if("변경".equals(nimsDto.getRptTyCd())){ - nimsDto.setRptTyCd(RPT_TY_CD.MODIFY.getCode()); - } - ///////////////////////////////////////////////////////// Map map = new HashMap<>(); - - NimsApiDto.DsuseRptInfo savedMgtDto = bizNimsMapper.selectDsuseRptInfoByUsrRptIdNo(Map.of("usrRptIdNo", nimsDto.getUsrRptIdNo())); if(isEmpty(savedMgtDto)){ newList.add(nimsDto); diff --git a/src/main/java/cokr/xit/adds/inf/nims/model/NimsApiRequest.java b/src/main/java/cokr/xit/adds/inf/nims/model/NimsApiRequest.java index 228e12f..1d22de2 100644 --- a/src/main/java/cokr/xit/adds/inf/nims/model/NimsApiRequest.java +++ b/src/main/java/cokr/xit/adds/inf/nims/model/NimsApiRequest.java @@ -320,7 +320,7 @@ public class NimsApiRequest { * 4050149 - 수지구보건소 * */ - @Schema(requiredMode = REQUIRED, title = "관할관청기관코드", description = "관할관청기관코드", example = " ") + @Schema(requiredMode = REQUIRED, title = "관할관청기관코드", description = "관할관청기관코드", example = "4050147") @Pattern(regexp = "[0-9]{7}", message = "관할 관청 기관 코드는 필수 입니다(7자리)") String gc; diff --git a/src/main/java/cokr/xit/adds/inf/nims/service/bean/InfNimsServiceBean.java b/src/main/java/cokr/xit/adds/inf/nims/service/bean/InfNimsServiceBean.java index 51289ca..d63c7bf 100644 --- a/src/main/java/cokr/xit/adds/inf/nims/service/bean/InfNimsServiceBean.java +++ b/src/main/java/cokr/xit/adds/inf/nims/service/bean/InfNimsServiceBean.java @@ -77,7 +77,6 @@ public class InfNimsServiceBean extends AbstractServiceBean implements InfNimsSe @Override - @TraceLogging public NimsApiResult.Response getBsshInfoSt(NimsApiRequest.BsshInfoReq dto) { ApiUtil.validate(dto, null, validator); if(isEmpty(dto.getBi()) && isEmpty(dto.getHp()) && isEmpty(dto.getBn()) && isEmpty(dto.getBc())) { @@ -91,7 +90,6 @@ public class InfNimsServiceBean extends AbstractServiceBean implements InfNimsSe } @Override - @TraceLogging public NimsApiResult.Response getProductInfoKd(NimsApiRequest.ProductInfoReq dto) { ApiUtil.validate(dto, null, validator); if(!isEmpty(dto.getYmd())) ApiUtil.checkYmdError(dto.getYmd(), null); @@ -113,7 +111,6 @@ public class InfNimsServiceBean extends AbstractServiceBean implements InfNimsSe } @Override - @TraceLogging public NimsApiResult.Response getJurisdictionGovInfo( NimsApiRequest.JurisdictionGovInfoReq dto) { ApiUtil.validate(dto, null, validator); @@ -127,13 +124,12 @@ public class InfNimsServiceBean extends AbstractServiceBean implements InfNimsSe } @Override + @TraceLogging public NimsApiResult.Response getDsuseRptInfo(NimsApiRequest.DsuseRptInfoReq dto) { - //FIXME: API 운영반영시 까지 comment 처리 - gc(관할군청코드 필수) skip - //ApiUtil.validate(dto, null, validator); + ApiUtil.validate(dto, null, validator); ApiUtil.checkYmdError(dto.getSdt(), "sdt"); ApiUtil.checkYmdError(dto.getEdt(), "edt"); - // FIXME: API 호출 시 주석 해제 String rslt = ApiUtil.callNimsApi(nimsUrl + dsuseresult, dto); NimsApiResult result = json.parse(rslt, new TypeReference<>() {}); diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index ddd2d3c..878f7c2 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -162,7 +162,7 @@ app: # request: # exclude-patterns: mdc: - enabled: false + enabled: true --- spring: