fix: NIMS API 적용

dev
Jonguk. Lim 5 months ago
parent 5ebc2d92d6
commit 547f582e14

@ -589,17 +589,6 @@ public class BizNimsServiceBean extends AbstractServiceBean implements BizNimsSe
List<NimsApiDto.DsuseRptInfo> 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<String, String> map = new HashMap<>();
NimsApiDto.DsuseRptInfo savedMgtDto = bizNimsMapper.selectDsuseRptInfoByUsrRptIdNo(Map.of("usrRptIdNo", nimsDto.getUsrRptIdNo()));
if(isEmpty(savedMgtDto)){
newList.add(nimsDto);

@ -320,7 +320,7 @@ public class NimsApiRequest {
* 4050149 -
* </pre>
*/
@Schema(requiredMode = REQUIRED, title = "관할관청기관코드", description = "관할관청기관코드", example = " ")
@Schema(requiredMode = REQUIRED, title = "관할관청기관코드", description = "관할관청기관코드", example = "4050147")
@Pattern(regexp = "[0-9]{7}", message = "관할 관청 기관 코드는 필수 입니다(7자리)")
String gc;

@ -77,7 +77,6 @@ public class InfNimsServiceBean extends AbstractServiceBean implements InfNimsSe
@Override
@TraceLogging
public NimsApiResult.Response<NimsApiDto.BsshInfoSt> 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<NimsApiDto.ProductInfoKd> 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<NimsApiDto.JurisdictionGovInfo> 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<NimsApiDto.DsuseRptInfo> 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<NimsApiDto.DsuseRptInfo> result = json.parse(rslt, new TypeReference<>() {});

@ -162,7 +162,7 @@ app:
# request:
# exclude-patterns:
mdc:
enabled: false
enabled: true
---
spring:

Loading…
Cancel
Save