duhongyu лет назад: 4
Родитель
Сommit
e4ffb621f7

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

39
                 {
39
                 {
40
                     dt = departmentBLL.GetList( "F_State=0" + sql, " F_Sort").Tables[0];
40
                     dt = departmentBLL.GetList( "F_State=0" + sql, " F_Sort").Tables[0];
41
                 }
41
                 }
42
-                else
42
+                else if (iscbdw == 1)
43
                 {
43
                 {
44
                     dt = departmentBLL.GetList( "F_State=0 and  ISNULL(F_IsDept, '0') ='1'" + sql, " F_Sort").Tables[0];
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
             else 
51
             else 
48
             {
52
             {