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