sandm 2 жил өмнө
parent
commit
6bb695d621

+ 7 - 2
app/Http/Controllers/Web/Recruit/IndexController.php

@@ -1950,13 +1950,18 @@ class IndexController extends WebBaseController
         }
 
         $recruit_id = $request->input('recruit_id');
-        $appoint_id = $request->input('appoint_id');
+        //$appoint_id = $request->input('appoint_id');
 
-        $info = RecruitAppointSelect::where('uid',$uid)->where('recruit_id',$recruit_id)->where('appoint_id',$appoint_id)->first();
+        $info = RecruitAppointSelect::where('uid',$uid)->where('recruit_id',$recruit_id)->first();
 
         if(!$info){
             return $this->showMessage('抱歉,您无需择岗!', route('recruit.show',array('id',$recruit_id)), true, '上一页', '2');
         }
+        //手动设置择岗时间段
+        $time = time();
+        if($time > 1661160600 || $time < 1661126400){
+            return $this->showMessage('抱歉,未到择岗时间!', route('recruit.show',array('id',$recruit_id)), true, '上一页', '2');
+        }
         $option_list = [
             [
                 'id' => 1,

+ 4 - 3
app/Http/Controllers/Web/Talent/JjhcController.php

@@ -1016,9 +1016,10 @@ class JjhcController extends WebBaseController
 53.4
 53.4
 53.4";
-        $arr = explode("\n",$str);
-        $record = explode("\n",$record_str);
-        $list = DB::table("recruit_ticket as a")->leftJoin("recruit_appoint_info as b","a.appoint_id",'=','b.id')->whereIn("a.ex_number",$arr)->get();
+        $arr = explode("\r\n",$str);
+        $record = explode("\r\n",$record_str);
+        $list = DB::table("recruit_ticket as a")->leftJoin("recruit_appoint_info as b","a.appoint_id",'=','b.id')->where('b.recruit_id',18)->whereIn("a.ex_number",$arr)->get();
+
         foreach ($list as $k => $v){
             $data = [];
             $data = [

+ 3 - 0
public/themes/default/views/app/recruit/show.blade.php

@@ -96,6 +96,9 @@
                     <a href="{{ route('recruit.material_supplement',array('id'=>$recruit->id)) }}" >
                         <li style="background:#67C23A;float: left;margin-bottom:10px;">考察审核</li>
                     </a>
+                    <a href="{{ route('recruit.post_select',array('recruit_id'=>$recruit->id)) }}" >
+                        <li style="background:#764DB3;float: left;margin-bottom:10px;">考察审核</li>
+                    </a>
                 @endif
                 <div style="clear: both;"></div>
             </ul>