|
@@ -1315,6 +1315,7 @@ class RecruitController extends Controller
|
|
|
}
|
|
|
if($status == -1){
|
|
|
$info = RecruitSupplement::where('appoint_id', $ids)->first();
|
|
|
+ $appointinfo = RecruitAppointInfo::where('id', $ids)->first();
|
|
|
//写日志
|
|
|
$log = [
|
|
|
'type' => 2,
|
|
@@ -1327,10 +1328,13 @@ class RecruitController extends Controller
|
|
|
$info->h_status = -1;
|
|
|
$info->h_msg = $reason;
|
|
|
$info->save();
|
|
|
+ $appointinfo->health_audit = 0;
|
|
|
+ $appointinfo->save();
|
|
|
}
|
|
|
if($status == 1){
|
|
|
$reason = $reason ?? '符合报考条件';
|
|
|
$info = RecruitSupplement::where('appoint_id', $ids)->first();
|
|
|
+ $appointinfo = RecruitAppointInfo::where('id', $ids)->first();
|
|
|
//写日志
|
|
|
$log = [
|
|
|
'type' => 2,
|
|
@@ -1343,6 +1347,8 @@ class RecruitController extends Controller
|
|
|
$info->h_status = 1;
|
|
|
$info->h_msg = $reason;
|
|
|
$info->save();
|
|
|
+ $appointinfo->health_audit = 1;
|
|
|
+ $appointinfo->save();
|
|
|
}
|
|
|
|
|
|
return response()->json(['status' => 1, 'msg' => '操作成功!', 'data' => 'ok']);
|