Compare commits
2 Commits
e4ea1be68f
...
0c7657ac9c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0c7657ac9c | ||
|
|
40cf536861 |
@@ -182,10 +182,11 @@ public class AciPodTasklet implements Tasklet {
|
|||||||
headers.set("ACIKey", aciKeyToken);
|
headers.set("ACIKey", aciKeyToken);
|
||||||
|
|
||||||
Map<String, Object> body = new HashMap<>();
|
Map<String, Object> body = new HashMap<>();
|
||||||
body.put("BLNO", orderVO.getInvcnb());
|
body.put("BLNO", List.of(orderVO.getInvcnb()));
|
||||||
|
|
||||||
HttpEntity<Map<String, Object>> apiRequest =
|
HttpEntity<Map<String, Object>> apiRequest =
|
||||||
new HttpEntity<>(body, headers);
|
new HttpEntity<>(body, headers);
|
||||||
|
log.info("[AciPodBatch] API 응답: {}", apiRequest.toString());
|
||||||
|
|
||||||
RestTemplate restTemplate = new RestTemplate();
|
RestTemplate restTemplate = new RestTemplate();
|
||||||
ResponseEntity<String> response = restTemplate.exchange(
|
ResponseEntity<String> response = restTemplate.exchange(
|
||||||
@@ -199,6 +200,7 @@ public class AciPodTasklet implements Tasklet {
|
|||||||
JsonNode jsonNode = objectMapper.readTree(response.getBody());
|
JsonNode jsonNode = objectMapper.readTree(response.getBody());
|
||||||
|
|
||||||
log.info("[AciPodBatch] API 응답 Status: {}", jsonNode.get("Status").asText());
|
log.info("[AciPodBatch] API 응답 Status: {}", jsonNode.get("Status").asText());
|
||||||
|
log.info("[AciPodBatch] API 응답 RstMsg: {}", jsonNode.get("RstMsg").asText());
|
||||||
JsonNode podInfoNode = jsonNode.get("PODInfo");
|
JsonNode podInfoNode = jsonNode.get("PODInfo");
|
||||||
if(!podInfoNode.isNull()) {
|
if(!podInfoNode.isNull()) {
|
||||||
List<DataMap> podInfoList = new ArrayList<>();
|
List<DataMap> podInfoList = new ArrayList<>();
|
||||||
|
|||||||
Reference in New Issue
Block a user