|
|
@@ -29,7 +29,7 @@ public class AccountInfo {
|
|
|
* 密码(密文)
|
|
|
*/
|
|
|
private String password;
|
|
|
-
|
|
|
+
|
|
|
private Long userIMId;
|
|
|
|
|
|
public Long getUserIMId() {
|
|
|
@@ -100,7 +100,7 @@ public class AccountInfo {
|
|
|
this.userUU = user.getUserUU();
|
|
|
this.userIMId = user.getUserIMId();
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
public AccountInfo(UserBaseInfo user, long enUU) {
|
|
|
this.email = user.getUserEmail();
|
|
|
this.enUU = enUU;
|
|
|
@@ -119,11 +119,14 @@ public class AccountInfo {
|
|
|
user.setUserTel(this.tel);
|
|
|
user.setUserPwd(this.password);
|
|
|
user.setUserIMId(this.userIMId);
|
|
|
- Enterprise enterprise = new Enterprise();
|
|
|
- enterprise.setUu(this.enUU);
|
|
|
- Set<Enterprise> enterprises = new HashSet<Enterprise>();
|
|
|
- enterprises.add(enterprise);
|
|
|
- user.setEnterprises(enterprises);
|
|
|
+ if (this.enUU != null) {
|
|
|
+ Enterprise enterprise = new Enterprise();
|
|
|
+ enterprise.setUu(this.enUU);
|
|
|
+ Set<Enterprise> enterprises = new HashSet<Enterprise>();
|
|
|
+ enterprises.add(enterprise);
|
|
|
+ user.setEnterprises(enterprises);
|
|
|
+ user.setEnterprise(enterprise);
|
|
|
+ }
|
|
|
return user;
|
|
|
}
|
|
|
|