|
|
@@ -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];
|