...
|
...
|
@@ -319,11 +319,13 @@ class Bind extends Api |
|
|
//获取雷达维度
|
|
|
//halt($sid);
|
|
|
$model = new RadarScore();
|
|
|
$list = collection($model->whereIn('campus_ids',$cid)->where('study_id',$sid)->field('radar_id,score')->select())->toArray();
|
|
|
foreach ($list as $k => $v){
|
|
|
$data[$k]['radar'] = \db('radar')->where('id',$v['radar_id'])->value('title');
|
|
|
$data[$k]['radar_score'] = $v['score'];
|
|
|
}
|
|
|
$data['item'] = $model->whereIn('campus_ids',$cid)->where('study_id',$sid)->field('radar_id,score')
|
|
|
->paginate(9,false)
|
|
|
->each(function ($item,$key){
|
|
|
$item['radar'] = \db('radar')->where('id',$item['radar_id'])->value('title');
|
|
|
$item['score'] = $item['score'];
|
|
|
return $item;
|
|
|
});
|
|
|
$this->success('获取成功', $data);
|
|
|
}
|
|
|
|
...
|
...
|
|