From 09fd3383c5e303577936f2d6a7725546311e76c0 Mon Sep 17 00:00:00 2001 From: wanggeng <450292408@qq.com> Date: Fri, 12 Nov 2021 17:46:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=B5=8B=E5=80=BC=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ink/wgink/pojo/dtos/user/UserDTO.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) 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("{");