瀏覽代碼

对接关注

chen 5 年之前
父節點
當前提交
1c2dd3f56e
共有 1 個文件被更改,包括 12 次插入1 次删除
  1. 12 1
      app/service/intelligentFollow.js

+ 12 - 1
app/service/intelligentFollow.js

@@ -63,7 +63,18 @@ class IntelligentFollowService extends CrudService {
     const total = await this.model.countDocuments(match);
     const res = await this.model.aggregate([
       { $match: match },
-      { $project: { intelligentId: { $toObjectId: '$intelligentId' }, creditStatus: 1, savetime: '$meta.createdAt' } },
+      { $project:
+          {
+            intelligentId: { $toObjectId: '$intelligentId' },
+            uuid: 1,
+            creditStatus: 1,
+            credit_money: 1,
+            sxcpname: 1,
+            sxhowlong: 1,
+            sxcplilue: 1,
+            savetime: '$meta.createdAt',
+          },
+      },
       { $lookup: {
         from: 'intelligent_docking',
         localField: 'intelligentId',