|
|
@@ -1,139 +0,0 @@
|
|
|
-package com.uas.platform.b2b.manage.model;
|
|
|
-
|
|
|
-import com.uas.platform.b2b.model.Enterprise;
|
|
|
-import com.uas.platform.b2b.model.User;
|
|
|
-import com.uas.platform.b2b.model.UserBaseInfo;
|
|
|
-
|
|
|
-import java.util.HashSet;
|
|
|
-import java.util.Set;
|
|
|
-
|
|
|
-/**
|
|
|
- * 账户信息
|
|
|
- *
|
|
|
- * @author US50
|
|
|
- */
|
|
|
-public class AccountInfo {
|
|
|
-
|
|
|
- /**
|
|
|
- * 企业UU号
|
|
|
- */
|
|
|
- private Long enUU;
|
|
|
-
|
|
|
- /**
|
|
|
- * 个人UU号
|
|
|
- */
|
|
|
- private Long userUU;
|
|
|
-
|
|
|
- /**
|
|
|
- * 姓名
|
|
|
- */
|
|
|
- private String name;
|
|
|
-
|
|
|
- /**
|
|
|
- * 手机号
|
|
|
- */
|
|
|
- private String tel;
|
|
|
- /**
|
|
|
- * 邮箱
|
|
|
- */
|
|
|
- private String email;
|
|
|
-
|
|
|
- /**
|
|
|
- * 密码(密文)
|
|
|
- */
|
|
|
- private String password;
|
|
|
-
|
|
|
- /**
|
|
|
- * imID
|
|
|
- */
|
|
|
- private Long userIMId;
|
|
|
-
|
|
|
- public Long getUserIMId() {
|
|
|
- return userIMId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setUserIMId(Long userIMId) {
|
|
|
- this.userIMId = userIMId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setEnUU(Long enUU) {
|
|
|
- this.enUU = enUU;
|
|
|
- }
|
|
|
-
|
|
|
- public Long getEnUU() {
|
|
|
- return enUU;
|
|
|
- }
|
|
|
-
|
|
|
- public Long getUserUU() {
|
|
|
- return userUU;
|
|
|
- }
|
|
|
-
|
|
|
- public void setUserUU(Long userUU) {
|
|
|
- this.userUU = userUU;
|
|
|
- }
|
|
|
-
|
|
|
- public String getName() {
|
|
|
- return name;
|
|
|
- }
|
|
|
-
|
|
|
- public void setName(String name) {
|
|
|
- this.name = name;
|
|
|
- }
|
|
|
-
|
|
|
- public String getTel() {
|
|
|
- return tel;
|
|
|
- }
|
|
|
-
|
|
|
- public void setTel(String tel) {
|
|
|
- this.tel = tel;
|
|
|
- }
|
|
|
-
|
|
|
- public String getEmail() {
|
|
|
- return email;
|
|
|
- }
|
|
|
-
|
|
|
- public void setEmail(String email) {
|
|
|
- this.email = email;
|
|
|
- }
|
|
|
-
|
|
|
- public String getPassword() {
|
|
|
- return password;
|
|
|
- }
|
|
|
-
|
|
|
- public void setPassword(String password) {
|
|
|
- this.password = password;
|
|
|
- }
|
|
|
-
|
|
|
- public AccountInfo() {
|
|
|
- }
|
|
|
-
|
|
|
- public AccountInfo(UserBaseInfo user, long enUU) {
|
|
|
- this.email = user.getUserEmail();
|
|
|
- this.enUU = enUU;
|
|
|
- this.name = user.getUserName();
|
|
|
- this.password = user.getUserPwd();
|
|
|
- this.tel = user.getUserTel();
|
|
|
- this.userUU = user.getUserUU();
|
|
|
- this.userIMId = user.getUserIMId();
|
|
|
- }
|
|
|
-
|
|
|
- public User convert() {
|
|
|
- User user = new User();
|
|
|
- user.setUserUU(this.userUU);
|
|
|
- user.setUserEmail(this.email);
|
|
|
- user.setUserName(this.name);
|
|
|
- user.setUserTel(this.tel);
|
|
|
- user.setUserPwd(this.password);
|
|
|
- user.setUserIMId(this.userIMId);
|
|
|
- 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;
|
|
|
- }
|
|
|
-
|
|
|
-}
|