大屏数据
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user