| | |
| | | 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) { |
| | | } |
| | |
| | | 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); |
| | | } |
| | | |