|
@@ -1177,7 +1177,6 @@ class BasicPanel extends Controller
|
|
|
// 查询指定时间范围内的数据,并按 platform 分组统计数量
|
|
// 查询指定时间范围内的数据,并按 platform 分组统计数量
|
|
|
$result = $ViolationStoreModel->where($map)->where('status', 0)
|
|
$result = $ViolationStoreModel->where($map)->where('status', 0)
|
|
|
->select(['platform', DB::raw('count(platform) as count')])
|
|
->select(['platform', DB::raw('count(platform) as count')])
|
|
|
- ->distinct('store_name')
|
|
|
|
|
->groupby('platform')
|
|
->groupby('platform')
|
|
|
->orderby('count', 'desc')
|
|
->orderby('count', 'desc')
|
|
|
->get()->toArray();
|
|
->get()->toArray();
|
|
@@ -1253,7 +1252,6 @@ class BasicPanel extends Controller
|
|
|
// 查询指定时间范围内的数据,并按 province 分组统计数量
|
|
// 查询指定时间范围内的数据,并按 province 分组统计数量
|
|
|
$result = $ViolationStoreModel->where($map)->where('status', 0)
|
|
$result = $ViolationStoreModel->where($map)->where('status', 0)
|
|
|
->select(['province_name', DB::raw('count(province_name) as count')])
|
|
->select(['province_name', DB::raw('count(province_name) as count')])
|
|
|
- ->distinct('store_name')
|
|
|
|
|
->groupby('province_name')
|
|
->groupby('province_name')
|
|
|
->orderby('count', 'desc')
|
|
->orderby('count', 'desc')
|
|
|
->get();
|
|
->get();
|
|
@@ -1321,7 +1319,6 @@ class BasicPanel extends Controller
|
|
|
// 查询指定时间范围内的数据,并按 province 分组统计数量
|
|
// 查询指定时间范围内的数据,并按 province 分组统计数量
|
|
|
$result = $ViolationStoreModel->where($map)->where('status', 0)
|
|
$result = $ViolationStoreModel->where($map)->where('status', 0)
|
|
|
->select(['province_name', DB::raw('count(province_name) as count')])
|
|
->select(['province_name', DB::raw('count(province_name) as count')])
|
|
|
- ->distinct('store_name')
|
|
|
|
|
->groupby('province_name')
|
|
->groupby('province_name')
|
|
|
->orderby('count', 'desc')
|
|
->orderby('count', 'desc')
|
|
|
->get()->toArray();
|
|
->get()->toArray();
|