...
|
...
|
@@ -48,7 +48,10 @@ class Index extends Api |
|
|
'campus_id' => $campus,
|
|
|
]
|
|
|
)->sum('score');
|
|
|
$data = \db('study_score_log')->field('study_id, SUM(score) as sum_score')->group('study_id')->order('sum_score', 'desc')->select();
|
|
|
$data = \db('study_score_log')
|
|
|
->field('study_id, SUM(score) as sum_score')
|
|
|
->group('study_id')->order('sum_score', 'desc')
|
|
|
->select();
|
|
|
$list = [];
|
|
|
foreach ($data as $k => $v) {
|
|
|
if ($v['study_id'] == $sid['id']) {
|
...
|
...
|
|