|
@@ -199,6 +199,7 @@ class IntelligentDockingService extends CrudService {
|
|
|
cid: { $toObjectId: '$cid' },
|
|
|
uid: '$uid',
|
|
|
xqId: { $toString: '$_id' },
|
|
|
+ time: '$meta.createdAt',
|
|
|
},
|
|
|
},
|
|
|
{ $lookup:
|
|
@@ -255,18 +256,6 @@ class IntelligentDockingService extends CrudService {
|
|
|
{ $unwind: '$dictionary' },
|
|
|
{ $unwind: { path: '$follow', preserveNullAndEmptyArrays: true } },
|
|
|
{ $unwind: { path: '$when', preserveNullAndEmptyArrays: true } },
|
|
|
- // { $project:
|
|
|
- // {
|
|
|
- // id: '$_id',
|
|
|
- // jg_id: '$jg_id',
|
|
|
- // cid: '$cid',
|
|
|
- // uid: '$uid',
|
|
|
- // companyName: '$company.company_name',
|
|
|
- // institutionName: '$institution.name',
|
|
|
- // product: '$finance_claims.name',
|
|
|
- // time: '$meta.createdAt',
|
|
|
- // },
|
|
|
- // },
|
|
|
{ $skip: (skip - 1) * limit },
|
|
|
{ $limit: limit },
|
|
|
{ $sort: { time: -1 } },
|