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