Browse Source

企业添加行业和经营范围

wangmh 7 years ago
parent
commit
4fd0fdee3e

+ 26 - 0
sso-common/src/main/java/com/uas/sso/entity/UserSpaceView.java

@@ -65,6 +65,16 @@ public class UserSpaceView {
      */
     private String telephone;
 
+    /**
+     * 行业
+     */
+    private String profession;
+
+    /**
+     * 经营范围标签,逗号分隔
+     */
+    private String tags;
+
     public Long getSpaceUU() {
         return spaceUU;
     }
@@ -152,4 +162,20 @@ public class UserSpaceView {
     public void setTelephone(String telephone) {
         this.telephone = telephone;
     }
+
+    public String getProfession() {
+        return profession;
+    }
+
+    public void setProfession(String profession) {
+        this.profession = profession;
+    }
+
+    public String getTags() {
+        return tags;
+    }
+
+    public void setTags(String tags) {
+        this.tags = tags;
+    }
 }

+ 30 - 0
sso-server/src/main/java/com/uas/sso/entity/Userspace.java

@@ -189,6 +189,18 @@ public class Userspace implements Serializable {
     @Column(name = "domain")
     private String domain;
 
+    /**
+     * 行业
+     */
+    @Column(name = "profession")
+    private String profession;
+
+    /**
+     * 经营范围标签,逗号分隔
+     */
+    @Column(name = "tags")
+    private String tags;
+
     /**
      * 企业下的用户
      */
@@ -447,6 +459,22 @@ public class Userspace implements Serializable {
         this.apps = apps;
     }
 
+    public String getProfession() {
+        return profession;
+    }
+
+    public void setProfession(String profession) {
+        this.profession = profession;
+    }
+
+    public String getTags() {
+        return tags;
+    }
+
+    public void setTags(String tags) {
+        this.tags = tags;
+    }
+
     /**
      * 将企业信息变成视图
      * @return
@@ -464,6 +492,8 @@ public class Userspace implements Serializable {
         userSpaceView.setValidCode(this.getValidCode());
         userSpaceView.setLogoImage(this.getLogoImage());
         userSpaceView.setTelephone(this.getTelephone());
+        userSpaceView.setProfession(this.getProfession());
+        userSpaceView.setTags(this.getTags());
         return userSpaceView;
     }