|
@@ -52,9 +52,10 @@ public class AdminDeptLogic {
|
|
|
public List<AdminDeptTree> tree(HttpServletRequest request) {
|
|
|
final AdminUserCom adminUser = commonLogic.getAdminUser();
|
|
|
List<AdminDept> list = new ArrayList<>();
|
|
|
- if (!adminUser.getType().equals(0) ){
|
|
|
+ if (!adminUser.getType().equals(1) ){
|
|
|
list = adminDeptService.lambdaQuery()
|
|
|
.in(CollectionUtil.isNotEmpty(adminUser.getAdminCompanyIds()), AdminDept::getCompanyWechatId, adminUser.getAdminCompanyIds())
|
|
|
+ .eq(AdminDept::getPId, "1")
|
|
|
.list();
|
|
|
}else{
|
|
|
list = adminDeptService.lambdaQuery()
|