|
|
@@ -17,10 +17,7 @@ class StatItemController extends BaseController
|
|
|
{
|
|
|
$get = Yii::$app->request->get();
|
|
|
$where = [];
|
|
|
- $where['shopId'] = $this->shopId;
|
|
|
- if (isset($get['shopId']) && !empty($get['shopId'])) {
|
|
|
- $where['shopId'] = $get['shopId'];
|
|
|
- }
|
|
|
+ $where['mainId'] = $this->mainId;
|
|
|
$searchTime = $get['searchTime'] ?? 'today';
|
|
|
if (!empty($searchTime)) {
|
|
|
$startTime = $get['startTime'] ?? '';
|