FengChaoYu 4 هفته پیش
والد
کامیت
92b1f17598
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      src/main/java/com/gree/mall/manager/logic/admin/AdminRoleLogic.java

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

@@ -52,7 +52,8 @@ public class AdminRoleLogic {
                     if (!adminUser.getUserName().equals("admin") && adminUser.getType().equals(0) || canShow) {
                         v.in(CollectionUtils.isNotEmpty(companyIds), AdminRole::getCompanyId, companyIds)
                                 .or()
-                                .isNull(AdminRole::getCompanyId);
+                                .isNull(AdminRole::getCompanyId)
+                                .or();
                     } else {
                         v.in(CollectionUtils.isNotEmpty(companyIds), AdminRole::getCompanyId, companyIds);
                     }