|
@@ -167,7 +167,7 @@ class IntelligentDockingService extends CrudService {
|
|
const skip = Number.parseInt(data.skip) || 1;
|
|
const skip = Number.parseInt(data.skip) || 1;
|
|
const limit = Number.parseInt(data.limit) || 10;
|
|
const limit = Number.parseInt(data.limit) || 10;
|
|
|
|
|
|
- const total = await this.model.countDocuments(query);
|
|
|
|
|
|
+ // const total = await this.model.countDocuments(query);
|
|
const result = await this.model.aggregate([
|
|
const result = await this.model.aggregate([
|
|
{ $match: query },
|
|
{ $match: query },
|
|
{ $project:
|
|
{ $project:
|
|
@@ -274,7 +274,8 @@ class IntelligentDockingService extends CrudService {
|
|
{ $limit: limit },
|
|
{ $limit: limit },
|
|
{ $sort: { time: -1 } },
|
|
{ $sort: { time: -1 } },
|
|
]);
|
|
]);
|
|
- return { result, total };
|
|
|
|
|
|
+ // return { result, total };
|
|
|
|
+ return { result, total: result.length };
|
|
}
|
|
}
|
|
|
|
|
|
// 拒绝接口
|
|
// 拒绝接口
|