|
@@ -83,7 +83,7 @@ class Item extends Backend |
|
@@ -83,7 +83,7 @@ class Item extends Backend |
83
|
$res = db('study_score_log l')
|
83
|
$res = db('study_score_log l')
|
84
|
->join('study s', 's.id = l.study_id')
|
84
|
->join('study s', 's.id = l.study_id')
|
85
|
->where('item_id', $data['id'])
|
85
|
->where('item_id', $data['id'])
|
86
|
- ->field('l.study_id,sum(l.score) as sum_score,s.name,s.sno,s.team_id,s.school,s.grade')
|
86
|
+ ->field('l.study_id,sum(l.score) as sum_score,s.name,s.unique,s.team_id,s.school,s.grade')
|
87
|
->group('l.study_id')
|
87
|
->group('l.study_id')
|
88
|
->order('sum_score', 'desc')
|
88
|
->order('sum_score', 'desc')
|
89
|
->select();
|
89
|
->select();
|
|
@@ -91,7 +91,7 @@ class Item extends Backend |
|
@@ -91,7 +91,7 @@ class Item extends Backend |
91
|
foreach ($res as $k => $v) {
|
91
|
foreach ($res as $k => $v) {
|
92
|
$list[] = [
|
92
|
$list[] = [
|
93
|
'name' => $v['name'],
|
93
|
'name' => $v['name'],
|
94
|
- 'sno' => $v['sno'],
|
94
|
+ 'unique' => $v['unique'],
|
95
|
'title' => db('team')->where('id',$v['team_id'])->value('title'),
|
95
|
'title' => db('team')->where('id',$v['team_id'])->value('title'),
|
96
|
'school' => $v['school'],
|
96
|
'school' => $v['school'],
|
97
|
'grade' => $v['grade'],
|
97
|
'grade' => $v['grade'],
|