Browse Source

更新两场招聘场次合并判断报名的功能

sandm 2 years ago
parent
commit
ee1cc8cff1
1 changed files with 6 additions and 0 deletions
  1. 6 0
      app/Http/Controllers/Web/Recruit/IndexController.php

+ 6 - 0
app/Http/Controllers/Web/Recruit/IndexController.php

@@ -703,6 +703,12 @@ class IndexController extends WebBaseController
 
         $appointinfo_exist = RecruitAppointInfo::where('card',$card)->where('uid','<>',$uid)->where('recruit_id',$recruit_id)->first();
 
+        //兆丰建设两场公告二而一例外
+        if($recruit_id == 25 || $recruit_id == 26){
+            $special = RecruitAppointInfo::where('card',$card)->where('uid','<>',$uid)->whereIn('recruit_id',[25,26])->first();
+            $appointinfo_exist = $appointinfo_exist & $special;
+        }
+
         if($appointinfo_exist){
             return response()->json(['status' => 0,'msg' => '您的证件已有其他账号的报名记录,请检查!']);
         }