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 4e8fa604e42d666bc2e2f611e772c4191b06ec02..1f697c5e6e79d277549d4af6a2b9d9e9bcd1c8dc 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; }