|
|
@@ -27,7 +27,11 @@ namespace CallCenterApi.Interface.Controllers
|
|
27
|
27
|
sql += " and F_PrentId=" + pid.Trim() ;
|
|
28
|
28
|
}
|
|
29
|
29
|
else
|
|
|
30
|
+ {
|
|
|
31
|
+ pid = "0";
|
|
30
|
32
|
sql += " and F_PrentId=0 ";
|
|
|
33
|
+ }
|
|
|
34
|
+
|
|
31
|
35
|
|
|
32
|
36
|
dt = new BLL.T_Sys_DictionaryValue().GetList(" 1=1 " + sql).Tables[0];
|
|
33
|
37
|
|
|
|
@@ -35,8 +39,8 @@ namespace CallCenterApi.Interface.Controllers
|
|
35
|
39
|
// string sqltest = " with cte(F_ValueId ,F_Value,F_PrentId,F_Layer,F_IsLeaf,F_State,F_ItemId) as(select F_ValueId, F_Value,F_PrentId,F_Layer,F_IsLeaf,F_State,F_ItemId from T_Sys_DictionaryValue where F_State = 0 and F_Value like'%出租汽车%' UNION all select t.F_ValueId, t.F_Value,t .F_PrentId ,t.F_Layer,t.F_IsLeaf,t.F_State,t.F_ItemId from T_Sys_DictionaryValue as t inner join cte as c on c.F_ValueId = t.F_PrentId )select* from cte ";
|
|
36
|
40
|
// dt = DbHelperSQL.Query(sqltest).Tables[0];
|
|
37
|
41
|
|
|
38
|
|
-
|
|
39
|
|
- string sqltest = " with cte(F_ValueId ,F_Value,F_PrentId,F_Layer,F_IsLeaf,F_State,F_ItemId) as(select F_ValueId ,F_Value,F_PrentId,F_Layer,F_IsLeaf,F_State,F_ItemId from T_Sys_DictionaryValue where F_PrentId = 38 UNION all select t.F_ValueId, t.F_Value,t .F_PrentId,t.F_Layer,t.F_IsLeaf,t.F_State,t.F_ItemId from T_Sys_DictionaryValue as t inner join cte as c on c.F_ValueId = t.F_PrentId )select * from cte ";
|
|
|
42
|
+
|
|
|
43
|
+ string sqltest = " with cte(F_ValueId ,F_Value,F_PrentId,F_Layer,F_IsLeaf,F_State,F_ItemId) as(select F_ValueId ,F_Value,F_PrentId,F_Layer,F_IsLeaf,F_State,F_ItemId from T_Sys_DictionaryValue where F_PrentId = "+ pid + " UNION all select t.F_ValueId, t.F_Value,t .F_PrentId,t.F_Layer,t.F_IsLeaf,t.F_State,t.F_ItemId from T_Sys_DictionaryValue as t inner join cte as c on c.F_ValueId = t.F_PrentId )select * from cte ";
|
|
40
|
44
|
|
|
41
|
45
|
|
|
42
|
46
|
var tab2 = DbHelperSQL.Query(sqltest).Tables[0];
|