shizhongqi пре 4 година
родитељ
комит
cc41207370
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app-ghs/controllers/ConsoleController.php

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

@@ -22,7 +22,7 @@ class ConsoleController extends BaseController
         $todayStartTime = $todayDate . ' 00:00:00';
         $todayEndTime = $todayDate . ' 23:59:59';
         $where = ['shopId' => $this->shopId, 'debt' => 0];
-        $where['payStatus'] = ['in', [2,3,4]];
+        $where['status'] = ['in', [2,3,4]];
         $where['addTime'] = ['between', [$todayStartTime, $todayEndTime]];
         $todayActIncome = OrderClass::sum($where, 'actPrice'); // 今日实收
         $todayActIncome = $todayActIncome === null ? 0 : $todayActIncome;