|
|
@@ -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');
|