|
@@ -84,6 +84,8 @@ class Exams extends Backend
|
|
$one[$k1]['epercent'] = $bili>0 ? $bili.'%' : '';
|
|
$one[$k1]['epercent'] = $bili>0 ? $bili.'%' : '';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ $vaccineCount = array_column($one, 'epercent');
|
|
|
|
+ array_multisort($vaccineCount,SORT_DESC,$one);
|
|
$one_static = $one;
|
|
$one_static = $one;
|
|
}
|
|
}
|
|
$two = Fault::where(['sim_type'=>'0002'])->where($where_falut)->field('fault_id,name')->select();
|
|
$two = Fault::where(['sim_type'=>'0002'])->where($where_falut)->field('fault_id,name')->select();
|
|
@@ -97,6 +99,8 @@ class Exams extends Backend
|
|
$two[$k2]['epercent'] = $bili>0 ? $bili.'%' : '';
|
|
$two[$k2]['epercent'] = $bili>0 ? $bili.'%' : '';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ $vaccineCount1 = array_column($two, 'epercent');
|
|
|
|
+ array_multisort($vaccineCount1,SORT_DESC,$two);
|
|
}
|
|
}
|
|
$two_static = $two;
|
|
$two_static = $two;
|
|
$three = Fault::where(['sim_type'=>'0003'])->where($where_falut)->field('fault_id,name')->select();
|
|
$three = Fault::where(['sim_type'=>'0003'])->where($where_falut)->field('fault_id,name')->select();
|
|
@@ -110,6 +114,8 @@ class Exams extends Backend
|
|
$three[$k3]['epercent'] = $bili>0 ? $bili.'%' : '';
|
|
$three[$k3]['epercent'] = $bili>0 ? $bili.'%' : '';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ $vaccineCount2 = array_column($three, 'epercent');
|
|
|
|
+ array_multisort($vaccineCount2,SORT_DESC,$three);
|
|
}
|
|
}
|
|
$three_static = $three;
|
|
$three_static = $three;
|
|
}
|
|
}
|
|
@@ -306,7 +312,7 @@ class Exams extends Backend
|
|
}else{
|
|
}else{
|
|
$sim_state = '';
|
|
$sim_state = '';
|
|
}
|
|
}
|
|
- $exam = $this->model->where('exam_collection_id',$ids)->where('seat_id',$value['seat_id'])->find();
|
|
|
|
|
|
+ $exam = $this->model->where('exam_collection_id',$ids)->order('exam_id desc')->where('seat_id',$value['seat_id'])->find();
|
|
$user_username = '';
|
|
$user_username = '';
|
|
$user_nickname = '';
|
|
$user_nickname = '';
|
|
$exam_status = '未登录';
|
|
$exam_status = '未登录';
|