ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java
@@ -146,6 +146,14 @@ { return userId != null && userId.equals("1"); } public boolean isApp() { return isApp(this.userId); } public boolean isApp(String userId) { return userId != null && this.getRoles().stream().anyMatch(sysRole -> sysRole.getRoleKey().contains("appLeader")); } public Long getDeptId() {