Browse Source

只统计活动商品

master
weigang 5 years ago
parent
commit
23400d8450
  1. 1
      app/Service/v3/Implementations/OrderOnlineService.php

1
app/Service/v3/Implementations/OrderOnlineService.php

@ -837,6 +837,7 @@ class OrderOnlineService implements OrderOnlineServiceInterface
->join($goodsTable, $goodsTable.'.order_id', '=', $orderTable.'.id')
->where($mainTable.'.updated_at', '>=', strtotime(date('Y-m-d 00:00:00')))
->where($mainTable.'.updated_at', '<=', strtotime(date('Y-m-d 23:59:59')))
->where([$goodsTable.'.activity_type' => 2])
->whereIn($mainTable.'.state', OrderState::LIMIT_BUY_COUNT)
->where([$mainTable.'.user_id' => $userId])
->whereIn($goodsTable.'.price', $limitPrices)

Loading…
Cancel
Save