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 9cffb57..b3313ac 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 @@ -132,10 +132,10 @@ public class PplusService extends EgovAbstractServiceImpl implements IPplusServi final Map headerMap = new HashMap<>(); headerMap.put(HttpHeaders.CONTENT_TYPE, MediaType.MULTIPART_FORM_DATA_VALUE); - return webClient.exchange( + return webClient.exchangeFormData( HOST + STATUS, HttpMethod.POST, - JsonUtils.toJson(reqDTO), + reqDTO, PpStatusResponse.class, headerMap ); diff --git a/mens-api/src/main/java/kr/xit/ens/pplus/web/PplusController.java b/mens-api/src/main/java/kr/xit/ens/pplus/web/PplusController.java index 45f9515..43ec930 100644 --- a/mens-api/src/main/java/kr/xit/ens/pplus/web/PplusController.java +++ b/mens-api/src/main/java/kr/xit/ens/pplus/web/PplusController.java @@ -5,6 +5,7 @@ import io.swagger.v3.oas.annotations.tags.Tag; import kr.xit.biz.ens.model.cmm.SndngMssageParam; import kr.xit.biz.ens.model.pplus.PplusDTO.PpCommonResponse; import kr.xit.biz.ens.model.pplus.PplusDTO.PpStatusRequest; +import kr.xit.biz.ens.model.pplus.PplusDTO.PpStatusResponse; import kr.xit.core.model.ApiResponseDTO; import kr.xit.core.model.IApiResponse; import kr.xit.ens.pplus.service.IPplusService; @@ -71,7 +72,7 @@ public class PplusController { @Operation(summary = "우편제작 상태 조회", description = "우편제작상태조회") @PostMapping(value = "/status", produces = MediaType.APPLICATION_JSON_VALUE) public IApiResponse status(@RequestBody final PpStatusRequest paramDTO) { - service.statusBulks(paramDTO); - return ApiResponseDTO.success(service.statusBulks(paramDTO)); + PpStatusResponse resDTO = service.statusBulks(paramDTO); + return ApiResponseDTO.success(resDTO); } }