diff --git a/src/main/java/cokr/xit/ci/api/presentation/NiceCiController.java b/src/main/java/cokr/xit/ci/api/presentation/NiceCiController.java index 7df093e..bfd54d3 100644 --- a/src/main/java/cokr/xit/ci/api/presentation/NiceCiController.java +++ b/src/main/java/cokr/xit/ci/api/presentation/NiceCiController.java @@ -32,9 +32,14 @@ public class NiceCiController { // public ResponseEntity ci(@RequestBody Map mParam) { public ResponseEntity ci(@RequestBody String param) { Gson gson = new Gson(); - List> params = gson.fromJson(param, ArrayList.class); + List> params = gson.fromJson(param, ArrayList.class); List jids = params.stream() - .map(row -> row.get("jid")) + .map(row -> { + if(row.get("jid") instanceof Double) + return String.valueOf(Double.valueOf((Double) row.get("jid")).longValue()); + else + return String.valueOf(row.get("jid")); + }) .collect(Collectors.toList()); ResponseVO respVO = diCiService.findAllByJid(SITE_CODE, SITE_PW, jids);