...
|
...
|
@@ -54,7 +54,7 @@ class Screen extends Api |
|
|
->each(function ($item,$key){
|
|
|
$res = db('study_score_log')->where('campus_id',$item['campus_id'])->sum('score');
|
|
|
$item['score'] = floor($item['sum_score']);
|
|
|
$item['percent'] = round($item['score'] / $res * 100,2);
|
|
|
$item['percent'] = round(($item['score']*0.6) / $res * 100,2);
|
|
|
$item['study'] = db('study')->where('team_id',$item['team_id'])->field('name,earn_score')->order('earn_score','desc')->select();
|
|
|
return $item;
|
|
|
});
|
...
|
...
|
|