|
@@ -76,6 +76,18 @@ public class User implements JsonSerializable {
|
|
*/
|
|
*/
|
|
private Integer sessionTimeout;
|
|
private Integer sessionTimeout;
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 构建key
|
|
|
|
+ *
|
|
|
|
+ * @author WANGWEI
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ public String buildKey() {
|
|
|
|
+ this.key = new StringBuilder().append("U_").append(userType.getCode()).append("_")
|
|
|
|
+ .append(rootOrgId).append("_").append(userId).toString();
|
|
|
|
+ return this.key;
|
|
|
|
+ }
|
|
|
|
+
|
|
public String getKey() {
|
|
public String getKey() {
|
|
return key;
|
|
return key;
|
|
}
|
|
}
|