From b43394844942cbc32790b1d196a3a98392b7d2b5 Mon Sep 17 00:00:00 2001 From: stylefeng Date: Fri, 24 Jan 2025 15:33:53 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=908.3.3=E3=80=91=E3=80=90org=E3=80=91?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=9C=BA=E6=9E=84=E7=9A=84=E5=85=B3=E7=B3=BB?= =?UTF-8?q?=E4=B8=AD=E5=A2=9E=E5=8A=A0=E7=BB=84=E7=BB=87=E6=9C=BA=E6=9E=84?= =?UTF-8?q?=E7=9A=84id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../roses/kernel/sys/api/pojo/user/UserOrgDTO.java | 6 ++++++ .../kernel/sys/modular/user/factory/UserOrgFactory.java | 1 + 2 files changed, 7 insertions(+) diff --git a/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/pojo/user/UserOrgDTO.java b/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/pojo/user/UserOrgDTO.java index f1f3d84cd..5b8fcb6d7 100644 --- a/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/pojo/user/UserOrgDTO.java +++ b/kernel-s-system/system-api/src/main/java/cn/stylefeng/roses/kernel/sys/api/pojo/user/UserOrgDTO.java @@ -42,6 +42,12 @@ public class UserOrgDTO { @ChineseDescription("用户id") private Long userId; + /** + * 用户组织机构id + */ + @ChineseDescription("用户组织机构id") + private Long orgId; + /** * 用户所属公司id */ diff --git a/kernel-s-system/system-business-hr/src/main/java/cn/stylefeng/roses/kernel/sys/modular/user/factory/UserOrgFactory.java b/kernel-s-system/system-business-hr/src/main/java/cn/stylefeng/roses/kernel/sys/modular/user/factory/UserOrgFactory.java index d8b69ca0c..96abd87bc 100644 --- a/kernel-s-system/system-business-hr/src/main/java/cn/stylefeng/roses/kernel/sys/modular/user/factory/UserOrgFactory.java +++ b/kernel-s-system/system-business-hr/src/main/java/cn/stylefeng/roses/kernel/sys/modular/user/factory/UserOrgFactory.java @@ -31,6 +31,7 @@ public class UserOrgFactory { // 获取用户的组织机构id Long orgId = sysUserOrg.getOrgId(); + result.setOrgId(orgId); // 获取用户的职位id Long positionId = sysUserOrg.getPositionId();