Browse Source

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@638 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d

administrator 11 years ago
parent
commit
0b339bafc1

+ 14 - 0
src/main/java/com/uas/platform/b2b/model/Authority.java

@@ -58,6 +58,12 @@ public class Authority {
 	@OrderBy("id")
 	@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
 	private Set<Resource> resources;
+	
+	/**
+	 * 所属企业UU
+	 */
+	@Column(name = "auth_enuu")
+	private Long enUU;
 
 	public Long getId() {
 		return id;
@@ -91,4 +97,12 @@ public class Authority {
 		this.resources = resources;
 	}
 
+	public Long getEnUU() {
+		return enUU;
+	}
+
+	public void setEnUU(Long enUU) {
+		this.enUU = enUU;
+	}
+
 }

+ 14 - 0
src/main/java/com/uas/platform/b2b/model/Role.java

@@ -67,6 +67,12 @@ public class Role implements Serializable {
 	@OrderBy("id")
 	@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
 	private Set<Authority> authorities;
+	
+	/**
+	 * 所属企业UU
+	 */
+	@Column(name = "role_enuu")
+	private Long enUU;
 
 	@JsonIgnore
 	public Long getId() {
@@ -109,6 +115,14 @@ public class Role implements Serializable {
 		this.authorities = authorities;
 	}
 
+	public Long getEnUU() {
+		return enUU;
+	}
+
+	public void setEnUU(Long enUU) {
+		this.enUU = enUU;
+	}
+
 	@JsonIgnore
 	public boolean isSys() {
 		return getIssys() != null && getIssys() == Constant.YES;

+ 3 - 0
src/main/java/com/uas/platform/b2b/support/SecurityConstant.java

@@ -2,6 +2,9 @@ package com.uas.platform.b2b.support;
 
 public class SecurityConstant {
 	
+	/**
+	 * 跳转登录url
+	 */
 	public static final String LOGIN_URL = "/signin";
 	
 }