Commit eedf9c38 authored by Java—KA—李 青's avatar Java—KA—李 青

修改userFullInfo构造函数

parent d7a38a41
......@@ -36,13 +36,14 @@ public class UserFullInfo implements Serializable {
}
public UserFullInfo(User user, UserDetail userDetail) {
assert user != null;
this.id = user.getId();
this.phoneNo = user.getPhoneNo();
this.registerFrom = user.getRegisteredFrom();
this.password = user.getPassword();
this.uuid = user.getUuid();
this.enable = user.getEnable();
if (user != null){
this.id = user.getId();
this.phoneNo = user.getPhoneNo();
this.registerFrom = user.getRegisteredFrom();
this.password = user.getPassword();
this.uuid = user.getUuid();
this.enable = user.getEnable();
}
if (userDetail != null) {
this.name = userDetail.getName();
this.idNo = userDetail.getIdNo();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment