|
@@ -294,14 +294,14 @@ class IndexController extends WebBaseController
|
|
|
$id = $request->input('id', 0);
|
|
|
$refresh = $request->input('refresh', '');
|
|
|
if (empty($id)) {
|
|
|
- return $this->showMessage('抱歉,请输入指定的招考场次!', route('recruit.list'), true, '上一页', '2');
|
|
|
+ return $this->showMessage('抱歉,请输入指定的招考场次!', route('recruit.index.list'), true, '上一页', '2');
|
|
|
}
|
|
|
$recruit = Recruit::find($id);
|
|
|
if (empty($recruit)) {
|
|
|
return redirect(route('/recruit/list'));
|
|
|
}
|
|
|
if(!$recruit->show_report){
|
|
|
- return $this->showMessage('抱歉,该场次不允许查看报名人数统计结果!', route('recruit.list'), true, '上一页', '2');
|
|
|
+ return $this->showMessage('抱歉,该场次不允许查看报名人数统计结果!', route('recruit.index.list'), true, '上一页', '2');
|
|
|
}
|
|
|
if(Cache::has("sign_up_count_{$recruit->id}") && $refresh != 'jjhc2019') {
|
|
|
$cache_data = Cache::get("sign_up_count_{$recruit->id}");
|
|
@@ -310,7 +310,7 @@ class IndexController extends WebBaseController
|
|
|
}else{
|
|
|
$list = RecruitPost::where('recruit_id',$recruit->id)->where('status',1)->get();
|
|
|
if(!$list){
|
|
|
- return $this->showMessage('抱歉,数据暂时未更新或更新出错!', route('recruit.list'), true, '上一页', '2');
|
|
|
+ return $this->showMessage('抱歉,数据暂时未更新或更新出错!', route('recruit.index.list'), true, '上一页', '2');
|
|
|
}
|
|
|
foreach ($list as $k => $v){
|
|
|
$res = RecruitAppointInfo::select(DB::raw("count(case audit when 1 then 1 end) as 'checking', count(case audit when 2 then 2 end) as 'fail',count(case audit when 3 then 3 end) as 'success'"))->where('recruit_id',$recruit->id)->where('post_id',$v->id)->first();
|