From d562551c7efd2c19fd037ab4fb1b7a355ff80f42 Mon Sep 17 00:00:00 2001
From: buhuazhen <hua100783@gmail.com>
Date: 星期五, 13 三月 2026 17:57:52 +0800
Subject: [PATCH] feat(inspection): 新增检测项目管理相关功能

---
 src/main/java/com/ruoyi/common/config/MybatisHandler.java |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/ruoyi/common/config/MybatisHandler.java b/src/main/java/com/ruoyi/common/config/MybatisHandler.java
index 71d9b56..cfb77ff 100644
--- a/src/main/java/com/ruoyi/common/config/MybatisHandler.java
+++ b/src/main/java/com/ruoyi/common/config/MybatisHandler.java
@@ -13,16 +13,19 @@
     public void insertFill(MetaObject metaObject) {
         Integer userId = null;
         Long tenantId = null;
+        String userName = null;
         try {
             userId = SecurityUtils.getUserId().intValue();
+            userName = SecurityUtils.getUsername();
             tenantId = SecurityUtils.getLoginUser().getTenantId();
         } catch (Exception ignored) {
         }
-        System.out.println("鎵ц鎻掑叆濉厖...");
         this.strictInsertFill(metaObject, "createTime", LocalDateTime.class, LocalDateTime.now());
         this.strictInsertFill(metaObject, "updateTime",  LocalDateTime.class, LocalDateTime.now());
         this.strictInsertFill(metaObject, "createUser", Integer.class, userId);
         this.strictInsertFill(metaObject, "updateUser", Integer.class, userId);
+        this.strictInsertFill(metaObject, "createUserName", String.class, userName);
+        this.strictInsertFill(metaObject, "updateUserName", String.class, userName);
         this.strictInsertFill(metaObject, "tenantId", Long.class, tenantId);
     }
 
@@ -36,4 +39,4 @@
         this.strictUpdateFill(metaObject, "updateTime", LocalDateTime.class, LocalDateTime.now()); // 璧峰鐗堟湰 3.3.0(鎺ㄨ崘)
         this.strictUpdateFill(metaObject, "updateUser", Integer.class, userId);
     }
-}
\ No newline at end of file
+}

--
Gitblit v1.9.3