shish 4 سال پیش
والد
کامیت
84e1a1b1ce
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app-ghs/controllers/ConsoleController.php

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

@@ -29,7 +29,7 @@ class ConsoleController extends BaseController
 
         $where = ['shopId' => $this->shopId, 'debt' => 1]; // 查询条件重新赋值
         $where['addTime'] = ['between', [$todayStartTime, $todayEndTime]];
-        $todayDebt = OrderClass::sum($where, 'debtPrice'); // 今日欠款
+        $todayDebt = OrderClass::sum($where, 'remainDebtPrice'); // 今日欠款
         $todayDebt = $todayDebt === null ? 0 : $todayDebt;
 
         $where = ['shopId' => $this->shopId, 'debt' => 1]; // 重新赋值