guhongwei hace 4 años
padre
commit
f974ae569b
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      app/service/user.js

+ 3 - 1
app/service/user.js

@@ -128,13 +128,15 @@ class UserService extends CrudService {
     return { data, total };
     return { data, total };
   }
   }
   async businessuser({ pid, skip, limit }) {
   async businessuser({ pid, skip, limit }) {
-    const query = { code: { $regex: /^.{9}$/ } };
+    const query = { };
     pid ? (query.pid = pid) : '';
     pid ? (query.pid = pid) : '';
+    console.log(query);
     const total = await this.model.count(query);
     const total = await this.model.count(query);
     const data = await this.model
     const data = await this.model
       .find(query)
       .find(query)
       .skip(Number(skip))
       .skip(Number(skip))
       .limit(Number(limit));
       .limit(Number(limit));
+    console.log(data);
     return { data, total };
     return { data, total };
   }
   }
   // 重写删除方法
   // 重写删除方法