Compare commits

...

2 Commits

Author SHA1 Message Date
이대환
0c7657ac9c fix : 출고 상태 변경
(cherry picked from commit 8c856a53e5)
2026-07-03 10:11:18 +09:00
이대환
40cf536861 fix : 출고 상태 변경
(cherry picked from commit 6df5f7d280)
2026-07-03 10:11:14 +09:00

View File

@@ -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<>();