From bbbfacf801eaf20b0d8ccc3c7d69a180f2392f10 Mon Sep 17 00:00:00 2001 From: jxx <283591387@qq.com> Date: Thu, 27 Nov 2025 13:51:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=BC=82=E5=B8=B8=E5=B1=9E?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../VOL.Sys/Services/System/Partial/Sys_DepartmentService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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("不能选择此上级组织"); }