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 @@