‘linchangsheng’ il y a 2 semaines
Parent
commit
e7d50f5013

+ 2 - 1
src/main/java/com/gree/mall/manager/logic/admin/AdminDeptLogic.java

@@ -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()