作者 开飞机的舒克

bug修改

... ... @@ -85,7 +85,7 @@ class Screen extends Backend
}
$data = $row->toArray();
$res = db('study_score_log l')
->where('campus_id', $data['campus_id'])
->whereIn('campus_ids', $data['campus_id'])
->field('l.team,sum(l.score) as sum_score')
->group('l.team')
->order('sum_score', 'desc')
... ... @@ -121,7 +121,7 @@ class Screen extends Backend
->field('s.name,sum(l.score) as sum_score,l.team')
->order('sum_score','desc')
->group('l.study_id')
->where('campus_id', $data['campus_id'])
->whereIn('campus_ids', $data['campus_id'])
->limit(40)
->select();
$list = [];
... ...