shish 4 лет назад
Родитель
Сommit
47a222f869
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app-ghs/controllers/ConsoleController.php

+ 1 - 1
app-ghs/controllers/ConsoleController.php

@@ -20,7 +20,7 @@ class ConsoleController extends BaseController
     //总览
     public function actionStat()
     {
-        $where = ['mainId' => $this->mainId, 'debt' => 1]; // 重新赋值
+        $where = ['shopId' => $this->shopId, 'debt' => 1]; // 重新赋值
         $pfDebt = OrderClass::sum($where, 'remainDebtPrice'); // 总欠款
         $pfDebt = $pfDebt === null ? 0 : $pfDebt;
         $lsDebt = \bizHd\order\classes\OrderClass::sum(['mainId' => $this->mainId, 'debt' => 1], 'remainDebtPrice');