diff --git a/vol.api/VOL.Sys/Services/System/Partial/Sys_DepartmentService.cs b/vol.api/VOL.Sys/Services/System/Partial/Sys_DepartmentService.cs index 3c10f7d5..83d525b9 100644 --- a/vol.api/VOL.Sys/Services/System/Partial/Sys_DepartmentService.cs +++ b/vol.api/VOL.Sys/Services/System/Partial/Sys_DepartmentService.cs @@ -83,7 +83,7 @@ namespace VOL.Sys.Services { return webResponse.Error("上级组织不能选择自己"); } - if (_repository.Exists(x => x.ParentId == dept.DepartmentId&&x => x.DepartmentId == dept.ParentId)) + if (_repository.Exists(x => x.ParentId == dept.DepartmentId && x.DepartmentId == dept.ParentId)) { return webResponse.Error("不能选择此上级组织"); }