This commit is contained in:
xman 2025-07-02 14:50:12 +08:00
parent 16b65a1fcd
commit 9de0179d66

View File

@ -92,7 +92,7 @@ class Orderplan extends Backend
'sum(total) total',
'count(id) count',
'sum(performance) performance'
])->limit(1);
])->where('status',\app\admin\model\Order::STATUS_FINISHED)->limit(1);
$res = $this->buildDate($build)->select();
@ -137,7 +137,9 @@ class Orderplan extends Backend
'sum(total) total',
'count(id) count',
'sum(performance) performance'
])->group(' DATE(create_time)');
])
->where('status',\app\admin\model\Order::STATUS_FINISHED)
->group(' DATE(create_time)');
$res = $this->buildDate($build)->select();
$data = [];