|
@@ -1027,6 +1027,7 @@ class RecruitController extends Controller
|
|
|
$type = $request->type;
|
|
|
$view_data['ids'] = $ids;
|
|
|
$info = RecruitSupplement::where('appoint_id',$ids)->where("type",$type)->first();
|
|
|
+ $view_data['type'] = $type;
|
|
|
if(!$info){
|
|
|
$view_data['switch'] = 0;
|
|
|
$view_data['photos'] = [];
|
|
@@ -1358,6 +1359,7 @@ class RecruitController extends Controller
|
|
|
if (empty($ids)) {
|
|
|
return response()->json(['status' => 0, 'msg' => '请选择审核记录!'], '200');
|
|
|
}
|
|
|
+ $type = $request->type;
|
|
|
$status = $request->h_status;
|
|
|
$reason = $request->reason;
|
|
|
if(empty($status)){
|
|
@@ -1367,7 +1369,7 @@ class RecruitController extends Controller
|
|
|
return response()->json(['status' => 0, 'msg' => '请输入审核原因!'], '200');
|
|
|
}
|
|
|
if($status == -1){
|
|
|
- $info = RecruitSupplement::where('appoint_id', $ids)->first();
|
|
|
+ $info = RecruitSupplement::where('appoint_id', $ids)->where('type',$type)->first();
|
|
|
$appointinfo = RecruitAppointInfo::where('id', $ids)->first();
|
|
|
//写日志
|
|
|
$log = [
|
|
@@ -1387,7 +1389,7 @@ class RecruitController extends Controller
|
|
|
}
|
|
|
if($status == 1){
|
|
|
$reason = $reason ?? '符合报考条件';
|
|
|
- $info = RecruitSupplement::where('appoint_id', $ids)->first();
|
|
|
+ $info = RecruitSupplement::where('appoint_id', $ids)->where('type',$type)->first();
|
|
|
$appointinfo = RecruitAppointInfo::where('id', $ids)->first();
|
|
|
//写日志
|
|
|
$log = [
|