大屏数据更新
This commit is contained in:
@@ -78,6 +78,7 @@ class DataController extends BaseAdminController
|
||||
->with(['drug' => function ($query) {
|
||||
$query->select(['id', 'drug_name', 'drug_number', 'type', 'image']);
|
||||
}])
|
||||
->where(['status' => 1])
|
||||
->select(['drug_id', 'sum(number) as number', 'sum(total_price) as total_price'])
|
||||
->groupBy('drug_id')
|
||||
->orderBy(['total_price' => SORT_DESC])
|
||||
|
||||
Reference in New Issue
Block a user