From 72de2d6e2bfc5e44b5942c84b97d544c6de0b1ee Mon Sep 17 00:00:00 2001 From: wangxy <1481820854@qq.com> Date: Wed, 27 Nov 2024 09:20:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=BA=86=E9=98=B3=E5=AE=9A=E5=AF=86?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=B7=BB=E5=8A=A0=E6=95=B0=E6=8D=AE=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/web/controller/manager/SecretManager.java | 1 + .../java/com/ruoyi/system/domain/secreting/TdSecreting.java | 2 ++ .../src/main/resources/mapper/system/TdSecretingMapper.xml | 5 ++++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/SecretManager.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/SecretManager.java index 1b45430..e6d2d7c 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/SecretManager.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/SecretManager.java @@ -40,6 +40,7 @@ public class SecretManager { tdSecreting.setCreateBy(ShiroUtils.getSysUser().getLoginName()); tdSecreting.setCreateTime(new Date()); } + tdSecreting.setDeptId(ShiroUtils.getSysUser().getDeptId()); return secretingService.saveOrUpdate(tdSecreting); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/domain/secreting/TdSecreting.java b/ruoyi-system/src/main/java/com/ruoyi/system/domain/secreting/TdSecreting.java index 6ad820a..7724625 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/domain/secreting/TdSecreting.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/domain/secreting/TdSecreting.java @@ -63,6 +63,8 @@ public class TdSecreting extends BaseEntity { */ private String keyPoint; + private Long deptId; + @TableField(exist = false) private static final long serialVersionUID = 1L; } \ No newline at end of file diff --git a/ruoyi-system/src/main/resources/mapper/system/TdSecretingMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TdSecretingMapper.xml index 7706dc3..1383570 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TdSecretingMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TdSecretingMapper.xml @@ -19,6 +19,7 @@ + @@ -30,7 +31,7 @@