李昊 4 years ago
parent
commit
c3ce9c8d23

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

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