diff --git a/basic-pojo/src/main/java/ink/wgink/pojo/dtos/user/UserDTO.java b/basic-pojo/src/main/java/ink/wgink/pojo/dtos/user/UserDTO.java index 91150a7f..09c57f65 100644 --- a/basic-pojo/src/main/java/ink/wgink/pojo/dtos/user/UserDTO.java +++ b/basic-pojo/src/main/java/ink/wgink/pojo/dtos/user/UserDTO.java @@ -233,6 +233,31 @@ public class UserDTO implements Serializable { this.gmtCreate = gmtCreate; } + protected void setUserDTO(UserDTO userDTO) { + this.userId = userDTO.getUserId(); + this.userUsername = userDTO.getUserUsername(); + this.userName = userDTO.getUserName(); + this.userPhone = userDTO.getUserPhone(); + this.userEmail = userDTO.getUserEmail(); + this.userUKey = userDTO.getUserUKey(); + this.userType = userDTO.getUserType(); + this.userState = userDTO.getUserState(); + this.userExpiredDate = userDTO.getUserExpiredDate(); + this.userAvatar = userDTO.getUserAvatar(); + this.lastLoginAddress = userDTO.getLastLoginAddress(); + this.lastLoginTime = userDTO.getLastLoginTime(); + this.userLongitude = userDTO.getUserLongitude(); + this.userLatitude = userDTO.getUserLatitude(); + this.departmentIds = userDTO.getDepartmentIds(); + this.departmentNames = userDTO.getDepartmentNames(); + this.roleIds = userDTO.getRoleIds(); + this.roleNames = userDTO.getRoleNames(); + this.positionIds = userDTO.getPositionIds(); + this.positionNames = userDTO.getPositionNames(); + this.loginType = userDTO.getLoginType(); + this.gmtCreate = userDTO.getGmtCreate(); + } + @Override public String toString() { final StringBuilder sb = new StringBuilder("{");