lrf402788946 4 years ago
parent
commit
a130667a4f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/service/statistics/index.js

+ 2 - 2
app/service/statistics/index.js

@@ -264,9 +264,9 @@ class IndexService extends CrudService {
       .aggregate()
       .match({
         dock_id: ObjectId(dock_id),
-        'goodsList.status': '1',
+        'productList.status': '1',
       })
-      .unwind('$goodsList')
+      .unwind('$productList')
       .group({
         _id: '$dock_id',
         count: { $sum: 1 },