Browse Source

取消isSys忽略JSON注解

git-svn-id: svn+ssh://10.10.101.21/source/platform/platform-b2b@1243 f3bf4e98-0cf0-11e4-a00c-a99a8b9d557d
suntg 10 years ago
parent
commit
1b631b677d

+ 2 - 0
src/main/java/com/uas/platform/b2b/model/User.java

@@ -175,6 +175,8 @@ public class User implements Serializable {
 		this.enable = enable;
 	}
 
+	@JsonIgnore
+	@JSONField(serialize = false)
 	public Short getIssys() {
 		return issys;
 	}

+ 11 - 0
src/main/java/com/uas/platform/b2b/model/UserInfo.java

@@ -23,6 +23,7 @@ public class UserInfo {
 		this.userName = user.getUserName();
 		this.userTel = user.getUserTel();
 		this.userSex = user.getUserSex();
+		this.sys = user.isSys();
 		if (user.getRoles() != null && user.getRoles().size() > 0) {
 			StringBuffer sb = new StringBuffer();
 			for (Role role : user.getRoles()) {
@@ -68,6 +69,8 @@ public class UserInfo {
 	private String userSex;
 
 	private String role;
+	
+	private boolean sys;
 
 	private List<Map<String, Object>> enterprises;
 
@@ -127,4 +130,12 @@ public class UserInfo {
 		this.enterprises = enterprises;
 	}
 
+	public boolean isSys() {
+		return sys;
+	}
+
+	public void setSys(boolean sys) {
+		this.sys = sys;
+	}
+
 }