Browse Source

获取部门科室的接口

lihai 6 years ago
parent
commit
db01babf3c

+ 15 - 1
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/DepartmentController.cs

163
         }
163
         }
164
 
164
 
165
         /// <summary>
165
         /// <summary>
166
-        /// 获取部门列表
166
+        /// 获取部门列表 - 树形
167
         /// </summary>
167
         /// </summary>
168
         /// <returns></returns>
168
         /// <returns></returns>
169
         public ActionResult GetDeptList(int pId = 0)
169
         public ActionResult GetDeptList(int pId = 0)
249
 
249
 
250
         }
250
         }
251
 
251
 
252
+        #region 获取一级部门/二级科室
253
+
254
+        /// <summary>
255
+        /// 获取部门列表 - 一级部门/二级科室
256
+        /// </summary>
257
+        /// <returns></returns>
258
+        public ActionResult GetTreeListByPid(int pid = 0)
259
+        {
260
+            DataTable dt = new DataTable();
261
+            dt = new BLL.T_Sys_Department().GetList(" F_State=1 and F_ParentId=" + pid).Tables[0];
262
+            return Success("加载成功", dt);
263
+        }
264
+        #endregion
265
+
252
         public class DepartmentTreeList
266
         public class DepartmentTreeList
253
         {
267
         {
254
             /// <summary>
268
             /// <summary>