‘liusuyi’
2023-07-27 e279e456850734349842edd8ce52dc16fc5cdea7
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java
@@ -140,8 +140,18 @@
     */
    private String rongCloudToken;
    private List<String> commands;
    public SysUser() {
    }
    public List<String> getCommands() {
        return commands;
    }
    public void setCommands(List<String> commands) {
        this.commands = commands;
    }
    public String getRongCloudToken() {
@@ -188,7 +198,11 @@
    }
    public boolean isAppLeader(String userId) {
        return userId != null && this.getRoles().stream().anyMatch(sysRole -> sysRole.getRoleKey().contains("appLeader"));
        List<SysRole> roles = this.getRoles();
        if(roles==null)
        {return false;}
        boolean appLeader = roles.stream().anyMatch(sysRole -> sysRole.getRoleKey().contains("appLeader"));
        return userId != null && appLeader;
    }
    public Long getDeptId() {