李昊 4 年之前
父節點
當前提交
c3ce9c8d23
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      GxPress/Repository/GxPress.Repository.Implement/DepartmentRepository.cs

+ 2 - 1
GxPress/Repository/GxPress.Repository.Implement/DepartmentRepository.cs

@@ -185,7 +185,8 @@ namespace GxPress.Repository.Implement
             dep.LeaderId = request.LeaderId;
             dep.Name = request.Name;
             dep.Sort = request.Sort;
-
+            if (request.ParentId > 0)
+                dep.ParentId = request.ParentId;
             return await UpdateAsync(dep);
         }