|
@@ -307,7 +307,7 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
|
item.Add("value", dicf["Id"].ToString());
|
|
|
item.Add("text", dicf["KindName"].ToString());
|
|
|
List<Dictionary<string, object>> sublist = new List<Dictionary<string, object>>();
|
|
|
- List<Dictionary<string, object>> lists = BusinessScopeService.List(relationData, "and KindId='" + dicf["Id"].ToString() + "'", 1, 99999);
|
|
|
+ List<Dictionary<string, object>> lists = BusinessScopeService.List(relationData, " and KindId='" + dicf["Id"].ToString() + "'", 1, 99999);
|
|
|
foreach (Dictionary<string, object> dics in lists)
|
|
|
{
|
|
|
Dictionary<string, object> subitem = new Dictionary<string, object>();
|
|
@@ -315,6 +315,7 @@ namespace MySystem.Areas.Api.Controllers.v1
|
|
|
subitem.Add("text", dics["Name"].ToString());
|
|
|
sublist.Add(subitem);
|
|
|
}
|
|
|
+ item.Add("children", sublist);
|
|
|
dataList.Add(item);
|
|
|
}
|
|
|
return dataList;
|