Sfoglia il codice sorgente

今日实收修改

shizhongqi 4 anni fa
parent
commit
4ce0016666
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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['status'] = ['in', [2,3,4]];
+        $where['status'] = ['in', [OrderClass::ORDER_STATUS_UN_SEND, OrderClass::ORDER_STATUS_SENDING, OrderClass::ORDER_STATUS_COMPLETE]];
         $where['addTime'] = ['between', [$todayStartTime, $todayEndTime]];
         $todayActIncome = OrderClass::sum($where, 'actPrice'); // 今日实收
         $todayActIncome = $todayActIncome === null ? 0 : $todayActIncome;