| | |
| | | @Override |
| | | public void insertFill(MetaObject metaObject) { |
| | | // 获取当前登录用户 |
| | | String userName = SecurityUtils.getUsername(); |
| | | fillValue("createBy", userName, metaObject); |
| | | Long userId = SecurityUtils.getUserId(); |
| | | fillValue("createBy", userId.toString(), metaObject); |
| | | fillValue("createTime", LocalDateTime.now(), metaObject); |
| | | } |
| | | |
| | | @Override |
| | | public void updateFill(MetaObject metaObject) { |
| | | // 获取当前登录用户 |
| | | String userName = SecurityUtils.getUsername(); |
| | | fillValue("updateBy", userName, metaObject); |
| | | Long userId = SecurityUtils.getUserId(); |
| | | fillValue("updateBy", userId.toString(), metaObject); |
| | | fillValue("updateTime", LocalDateTime.now(), metaObject); |
| | | } |
| | | |