shish пре 5 година
родитељ
комит
cc9bd50d5a
1 измењених фајлова са 2 додато и 3 уклоњено
  1. 2 3
      app-ghs/controllers/ConsoleController.php

+ 2 - 3
app-ghs/controllers/ConsoleController.php

@@ -30,13 +30,12 @@ class ConsoleController extends BaseController
         //今天销售
         $sale = StatSaleClass::getByCondition(['shopId' => $this->shopId, 'time' => date('Ymd')]);
         $todaySale = $sale['amount'] ?? 0;
+        $orderNum = $sale['num'] ?? 0;
 
         //2021.4.14 linqh 今日支出
         $outData = StatOutService::getTodayNum($this->shopId);
         $todayOut = $outData['amount'] ?? '0.00';
-        //今天开单数
-        $statOrder = \bizHd\stat\classes\StatOrderClass::getByCondition(['shopId' => $this->shopId, 'time' => date('Ymd')]);
-        $orderNum = $statOrder['riseNum'] ?? 0;
+
         $view = StatViewClass::getByCondition(['shopId' => $this->shopId, 'time' => date('Ymd')]);
         $viewNum = $view['riseNum'] ?? 0;
         $todayData = ['income' => $todaySale, 'order' => $orderNum, 'custom' => $customNum, 'expend' => $todayOut, 'view' => $viewNum];