Browse Source

对接关注

chen 4 years ago
parent
commit
fe66d8c588
1 changed files with 9 additions and 4 deletions
  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:
           {