解决方案 »
- 大家好,整调了之前的一个JAVA开发辅助工具,给大家分享下!:)
- 我调试一个jsp+tomcat5.0+sqlsever2000程序 出现login.do后显示空白 在线等
- FCKeditor使用的问题,急用解决给分!!!
- 数据库连接的问题,请指教
- 哪里有struts的tld使用教程下载阿??
- 新手问题!!!!!Apache到底是什么?
- tomcat报错“会话达到了你的开发者或作业组的限制”
- !!!修改后的书籍管理JSP程序全部源代码现给大家开放,以相互学习
- 一个小问题:web.xml何时需要修改,怎么修改?
- 可怜可怜我吧,帮帮忙
- 开发时,oracle 的sql中常用union all 有没有什么不好的地方?请教下各位
- java map数据存入内存中,用于判断key是否存在,便于处理下面的问题。
有人来接分吗protected List<Map<Object, Object>> queryChild(List<Map<Object, Object>> listmap) throws Exception{
for(int l = 0;l< listmap.size();l++){
Map<Object, Object> root = listmap.get(l);
Map<Object,Object> attributesArray = new HashMap<Object,Object>();
List<Map<Object, Object>> listChild = queryAssetTypeTreeChild((String) root.get("ASSET_GUID"));
attributesArray.putAll(root);
if(root.get("TYPE_LEVEL") == "4"){
root.put("state", "closed");
}else{
root.put("state", "open");
}
root.put("children", queryChild(listChild));
root.put("id", attributesArray.remove("ASSET_GUID")) ;
root.put("text", attributesArray.remove("TYPE_NAME"));
root.put("attributes", attributesArray);
}
return listmap;
}