From af8b0ddeeb5fc71f5099e6be44dc9d3064a3b243 Mon Sep 17 00:00:00 2001 From: 刘小明 <liuxm_a@163.com> Date: 星期四, 29 八月 2024 16:49:59 +0800 Subject: [PATCH] 优化查询全部工站(id以string格式传给前端) --- pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/station/StationSv.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/station/StationSv.java b/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/station/StationSv.java index 35556f6..c0858da 100644 --- a/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/station/StationSv.java +++ b/pms-parent/pms-web-platform/src/main/java/com/dy/pmsPlatform/station/StationSv.java @@ -156,7 +156,7 @@ List<PltStation> list = dao.selectAll(); JSONArray child = new JSONArray(); list.forEach(item->{ - child.add(new JSONObject().set("id", item.getId()).set("name", item.getName())); + child.add(new JSONObject().set("id", String.valueOf(item.getId())).set("name", item.getName())); }); return child; } -- Gitblit v1.8.0