Browse Source

fix: 修复isSys=0不判断角色的问题

suntg 6 years ago
parent
commit
81d38ab19f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/com/uas/platform/b2b/model/User.java

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

@@ -353,7 +353,7 @@ public class User implements Serializable {
 	}
 	}
 
 
 	public boolean isSys() {
 	public boolean isSys() {
-		if (getIssys() == null) {
+		if (Constant.YES != issys) {
 			setCurrentEnterpriseRoles();
 			setCurrentEnterpriseRoles();
 			Set<Role> roles = getRoles();
 			Set<Role> roles = getRoles();
 			if (!CollectionUtils.isEmpty(roles)) {
 			if (!CollectionUtils.isEmpty(roles)) {
@@ -366,7 +366,7 @@ public class User implements Serializable {
 				}
 				}
 			}
 			}
 		}
 		}
-		return getIssys() != null && getIssys() == Constant.YES;
+		return issys != null && issys == Constant.YES;
 	}
 	}
 
 
 	@JsonIgnore
 	@JsonIgnore