瀏覽代碼

对接关注

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

+ 9 - 4
app/service/intelligentDocking.js

@@ -230,10 +230,15 @@ class IntelligentDockingService extends CrudService {
             as: 'follow',
           },
       },
-      { $unwind: '$company', preserveNullAndEmptyArrays: true },
-      { $unwind: '$institution', preserveNullAndEmptyArrays: true },
-      { $unwind: '$finance_claims', preserveNullAndEmptyArrays: true },
-      { $unwind: '$dictionary', preserveNullAndEmptyArrays: true },
+      { $unwind: { path: '$company', preserveNullAndEmptyArrays: true } },
+      { $unwind: { path: '$institution', preserveNullAndEmptyArrays: true } },
+      { $unwind: { path: '$finance_claims', preserveNullAndEmptyArrays: true } },
+      { $unwind: { path: '$dictionary', preserveNullAndEmptyArrays: true } },
+
+      // { $unwind: '$company', preserveNullAndEmptyArrays: true },
+      // { $unwind: '$institution', preserveNullAndEmptyArrays: true },
+      // { $unwind: '$finance_claims', preserveNullAndEmptyArrays: true },
+      // { $unwind: '$dictionary', preserveNullAndEmptyArrays: true },
       { $unwind: { path: '$follow', preserveNullAndEmptyArrays: true } },
       { $project:
           {