作者 开飞机的舒克

优化后台项目管理

@@ -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'],
@@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
4 <th>{:__('姓名')}</th> 4 <th>{:__('姓名')}</th>
5 <th>{:__('班级')}</th> 5 <th>{:__('班级')}</th>
6 <th>{:__('学校')}</th> 6 <th>{:__('学校')}</th>
7 - <th>{:__('学号')}</th> 7 + <th>{:__('手环ID')}</th>
8 <th>{:__('所属战队')}</th> 8 <th>{:__('所属战队')}</th>
9 <th>{:__('积分')}</th> 9 <th>{:__('积分')}</th>
10 </tr> 10 </tr>
@@ -15,7 +15,7 @@ @@ -15,7 +15,7 @@
15 <td>{$vo.name}</td> 15 <td>{$vo.name}</td>
16 <td style="word-break: break-all;">{$vo.grade}</td> 16 <td style="word-break: break-all;">{$vo.grade}</td>
17 <td style="word-break: break-all;">{$vo.school}</td> 17 <td style="word-break: break-all;">{$vo.school}</td>
18 - <td style="word-break: break-all;">{$vo.sno}</td> 18 + <td style="word-break: break-all;">{$vo.unique}</td>
19 <td style="word-break: break-all;">{$vo.title}</td> 19 <td style="word-break: break-all;">{$vo.title}</td>
20 <td style="word-break: break-all;">{$vo.score}</td> 20 <td style="word-break: break-all;">{$vo.score}</td>
21 </tr> 21 </tr>