|
@@ -60,7 +60,8 @@ public class TreeUtil {
|
|
|
List<JSONObject> collect = list.stream().map(item -> {
|
|
|
JSONObject data = JSON.parseObject(JSONObject.toJSONString(item));
|
|
|
|
|
|
- JSONObject jsonObject = new JSONObject();
|
|
|
+ JSONObject jsonObject = data;
|
|
|
+
|
|
|
jsonObject.put(ID_NAME, data.get(idName));
|
|
|
jsonObject.put(PARENT_ID_NAME, data.get(parentIdName));
|
|
|
jsonObject.put(LABEL_NAME, data.get(labelName));
|