查找所有资讯种类,并将他们映射到对应节点中,然后找出子节点,返给前端。
数据库结构:
NewsType:
public class NewsType{ private String TypeId; private String ParentId; private String TypeName; private String State; private String SortNum; private String parentTypeName; public String getTypeId() { return TypeId; } public void setTypeId(String typeId) { TypeId = typeId; } public String getParentId() { return ParentId; } public void setParentId(String parentId) { ParentId = parentId; } public String getTypeName() { return TypeName; } public void setTypeName(String typeName) { TypeName = typeName; } public String getState() { ret