lrf 3 年之前
父节点
当前提交
968cf1840f
共有 1 个文件被更改,包括 1 次插入6 次删除
  1. 1 6
      app/service/user/personal.js

+ 1 - 6
app/service/user/personal.js

@@ -64,13 +64,8 @@ class PersonalService extends CrudService {
       // 业务查询
       // 业务查询
       // code直接查询用户返回即可
       // code直接查询用户返回即可
       condition.code = code;
       condition.code = code;
-    } else {
-      // 超级管理员查询
-      // 将所有管理员的code都查出来做条件
-      const allAdmin = await this.adminModel.find({}, { code: 1 });
-      const codes = allAdmin.map(i => i.code);
-      condition.code = codes;
     }
     }
+    // 没有code,超级管理员,说明不限制
     return condition;
     return condition;
   }
   }
   /**
   /**