From 5f1f16c9ad0d089b9573235594c191354c7e0ae9 Mon Sep 17 00:00:00 2001 From: zzh <1368735060@qq.com> Date: Fri, 3 Jul 2026 16:44:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E6=9D=83=E9=99=90):=20?= =?UTF-8?q?=E7=BB=84=E7=BB=87=E6=A0=91=E9=80=92=E5=BD=92=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=20ParentId=20=E8=80=8C=E9=9D=9E=20PId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复 get-effective-by-user 展开下级组织时报 Unknown column c.PId。 Co-authored-by: Cursor --- src/Oms.Application/DataPerm/DataPermRepository.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Oms.Application/DataPerm/DataPermRepository.cs b/src/Oms.Application/DataPerm/DataPermRepository.cs index 9923cc1..b0975bb 100644 --- a/src/Oms.Application/DataPerm/DataPermRepository.cs +++ b/src/Oms.Application/DataPerm/DataPermRepository.cs @@ -393,7 +393,7 @@ public class DataPermRepository(FakeRbacDbContext dbContext) : IScopedDependency UNION ALL SELECT c.`Id` FROM `organization` c - INNER JOIN org_tree t ON c.`PId` = t.`Id` + INNER JOIN org_tree t ON c.`ParentId` = t.`Id` WHERE c.`IsDeleted` = 0 ) SELECT `Id` AS `Value` FROM org_tree