‘liusuyi’
2023-07-24 e339298a0b94505a0dd283f7f0d9c0cf0aa51987
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()
    {