shish 3 years ago
parent
commit
47a222f869
1 changed files with 1 additions and 1 deletions
  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');