duhongyu 4 lat temu
rodzic
commit
e4ffb621f7

+ 5 - 1
CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/DepartmentController.cs

@@ -39,10 +39,14 @@ namespace CallCenterApi.Interface.Controllers
39 39
                 {
40 40
                     dt = departmentBLL.GetList( "F_State=0" + sql, " F_Sort").Tables[0];
41 41
                 }
42
-                else
42
+                else if (iscbdw == 1)
43 43
                 {
44 44
                     dt = departmentBLL.GetList( "F_State=0 and  ISNULL(F_IsDept, '0') ='1'" + sql, " F_Sort").Tables[0];
45 45
                 }
46
+                else if (iscbdw == 2)
47
+                {
48
+                    dt = departmentBLL.GetList("F_State=0 and F_IsDept in(1,2)" + sql, " F_Sort").Tables[0];
49
+                }
46 50
             }
47 51
             else 
48 52
             {