疯狂的狮子Li
2025-01-20 3c8d864b5f68af5167199e0d5c9ff6c0c5852638
ruoyi-common/ruoyi-common-mybatis/src/main/java/org/dromara/common/mybatis/handler/InjectionMetaObjectHandler.java
@@ -71,7 +71,10 @@
                baseEntity.setUpdateTime(current);
                // 获取当前登录用户的ID,并填充更新人信息
                baseEntity.setUpdateBy(ObjectUtils.notNull(LoginHelper.getUserId()));
                Long userId = LoginHelper.getUserId();
                if (ObjectUtil.isNotNull(userId)) {
                    baseEntity.setUpdateBy(userId);
                }
            } else {
                this.strictUpdateFill(metaObject, "updateTime", Date.class, new Date());
            }