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