Selaa lähdekoodia

获取部门科室的接口

lihai 5 vuotta sitten
vanhempi
commit
db01babf3c

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

@@ -163,7 +163,7 @@ namespace CallCenterApi.Interface.Controllers
163 163
         }
164 164
 
165 165
         /// <summary>
166
-        /// 获取部门列表
166
+        /// 获取部门列表 - 树形
167 167
         /// </summary>
168 168
         /// <returns></returns>
169 169
         public ActionResult GetDeptList(int pId = 0)
@@ -249,6 +249,20 @@ namespace CallCenterApi.Interface.Controllers
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 266
         public class DepartmentTreeList
253 267
         {
254 268
             /// <summary>