@ -50,7 +50,7 @@ class AppointmentController extends Controller
$c=DB::table('appointment_record as a')
->where([['a.id_card_num','=',$info['id_card_num']],['a.is_del','=',0],['a.fee_type','=',0],['a.created_at','>=',$firstDay],['a.created_at','<=',$lastDay]])->get();
if(count($c)>0){
if($c[0]->status==2){
if($c[0]->status==2 and $info['fee_type']==0){
return \Yz::Return(false,'本年度已经有体检登记记录',['info'=>$c]);
}