| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author xiaochen |
| | | * @ClassName DataUpdateInterceptor |
| | |
| | | public void insertFill(MetaObject metaObject) { |
| | | // 获取登录信息 |
| | | LoginUser loginUser = tokenService.getLoginUser(); |
| | | String userName = loginUser.getUsername(); |
| | | this.setFieldValByName("createTime", new Date(), metaObject); |
| | | this.setFieldValByName("updateTime", new Date(), metaObject); |
| | | // String userName = loginUser.getUsername(); |
| | | // if (StringUtils.hasLength(userName)) { |
| | | // this.setFieldValByName("createBy", userName, metaObject); |
| | | // this.setFieldValByName("createTime", new Date(), metaObject); |