...
|
...
|
@@ -44,6 +44,7 @@ class Screen extends Api |
|
|
->paginate(4)
|
|
|
->each(function ($item,$key){
|
|
|
$res = db('study_score_log')->where('campus_id',$item['campus_id'])->sum('score');
|
|
|
$item['team_name'] = db('team')->where('id',$item['team_id'])->value('title');
|
|
|
$item['score'] = floor($item['sum_score']);
|
|
|
$item['percent'] = round(($item['score']*0.6) / $res * 100,2);
|
|
|
$item['study'] = db('study_score_log l')
|
...
|
...
|
|