2021与蓝度共同重构项目,服务端
liuhaonan
2022-03-04 213ead12843a2cf6be2a3fd8c46c20ddd27bf359
ximon-admin/src/main/java/com/sandu/ximon/admin/service/ClientService.java
@@ -94,4 +94,19 @@
        }
    }
    /**
     * 一级客户返回false  二级客户返回true
     * @return
     */
    public boolean findClientId(){
        Long userId = SecurityUtils.getUserId();
        Client one = getOne(Wrappers.lambdaQuery(Client.class).eq(Client::getId, userId));
        if(one!=null&&one.getSuperiorId()!=null){
            return true;
        }else {
            return false;
        }
    }
}