@@ -64,13 +64,8 @@ class PersonalService extends CrudService {
// 业务查询
// 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;
/**