From d938a329ab6b947b2aef6ba6cc12d2207cf2d3e3 Mon Sep 17 00:00:00 2001 From: "1437892690@qq.com" <1437892690@qq.com> Date: Thu, 12 Dec 2024 18:17:53 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20=E5=B7=A5=E5=8D=95?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=E4=B8=8B=E8=BD=BD=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1310029125222400]工单中心下载报错 http://192.168.0.96:8090/demo/rdm.html#/bug-detail/939050947543040/939050947543057/1310029125222400 --- .../handler/AccountsHandler.java | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/src/main/java/neatlogic/module/cmdb/formattribute/handler/AccountsHandler.java b/src/main/java/neatlogic/module/cmdb/formattribute/handler/AccountsHandler.java index 4e8fa604..1f697c5e 100644 --- a/src/main/java/neatlogic/module/cmdb/formattribute/handler/AccountsHandler.java +++ b/src/main/java/neatlogic/module/cmdb/formattribute/handler/AccountsHandler.java @@ -26,9 +26,6 @@ import neatlogic.framework.form.exception.AttributeValidException; import org.apache.commons.collections4.CollectionUtils; import org.springframework.stereotype.Component; -import java.util.Map; -import java.util.Set; - /** * @author linbq * @since 2021/8/24 14:13 @@ -318,7 +315,7 @@ public class AccountsHandler extends FormHandlerBase { tableObj.put("value", valueArray); if (CollectionUtils.isNotEmpty(valueArray)) { tableObj.put("theadList", theadList); - JSONArray tbodyList = new JSONArray(); +// JSONArray tbodyList = new JSONArray(); for (int i = 0; i < valueArray.size(); i++) { JSONObject valueObj = valueArray.getJSONObject(i); valueObj.remove("actionType"); @@ -326,18 +323,18 @@ public class AccountsHandler extends FormHandlerBase { valueObj.remove("lcu"); valueObj.remove("fcuVo"); valueObj.remove("lcuVo"); - Set> entrySet = valueObj.entrySet(); - JSONObject tbodyObj = new JSONObject(); - for (Map.Entry entry : entrySet) { - tbodyObj.put(entry.getKey(), new JSONObject() { - { - this.put("text", entry.getValue()); - } - }); - } - tbodyList.add(tbodyObj); +// Set> entrySet = valueObj.entrySet(); +// JSONObject tbodyObj = new JSONObject(); +// for (Map.Entry entry : entrySet) { +// tbodyObj.put(entry.getKey(), new JSONObject() { +// { +// this.put("text", entry.getValue()); +// } +// }); +// } +// tbodyList.add(tbodyObj); } - tableObj.put("tbodyList", tbodyList); + tableObj.put("tbodyList", valueArray); } return tableObj; } -- Gitee