|
|
|
|
@ -108,7 +108,7 @@ class AppointmentService
|
|
|
|
|
$cha_jkz=DB::table('examination_records as a')
|
|
|
|
|
->leftJoin('medical_institution as b','a.institution_id','=','b.id')
|
|
|
|
|
->select('a.*','b.org_name')
|
|
|
|
|
->where(['a.id_card_num'=>$encode_id_card_num])->orderBy('a.id','desc')->first();
|
|
|
|
|
->where(['a.id_card_num'=>$encode_id_card_num,'a.is_del'=>0,'a.type'=>$type])->orderBy('a.id','desc')->first();
|
|
|
|
|
//,如果有判断是否快到期(先不判断是否体检通过),能否继续预约
|
|
|
|
|
if(!!$cha_jkz){
|
|
|
|
|
|
|
|
|
|
|