大屏数据

This commit is contained in:
2025-01-02 16:18:05 +08:00
parent b1dec5d35b
commit dde260a44d

View File

@@ -85,14 +85,14 @@ class DataController extends BaseAdminController
{
// 根据$month列表的月份统计数据
$query = Reconciliation::find()->where(['between', 'created_at', strtotime(date('Y-01-01'), '-11 month'), strtotime(date('Y-m-d 23:59:59'))])->select([
$query = Reconciliation::find()->where(['between', 'created_at', strtotime(date('Y-01-01', strtotime('-11 month'))), strtotime(date('Y-m-d 23:59:59'))])->select([
'drug_type',
'total_price',
'status',
'created_at',
])->all();
$month = $this->getMonthsList(strtotime(date('Y-01-01'), '-11 month'), strtotime(date('Y-m-d')));
$month = $this->getMonthsList(strtotime(date('Y-01-01', strtotime('-11 month'))), strtotime(date('Y-m-d')));
$saleMoney = [];
$refundMoney = [];
$drugSaleMoney = [