刘桂岩 5 years ago
parent
commit
2f357f927d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/inter/controller/Inspectregister.php

+ 1 - 1
application/inter/controller/Inspectregister.php

@@ -389,7 +389,7 @@ class Inspectregister extends Base
                     return json_encode(['status'=>'fail','code'=>'1130','msg'=>'已经检查完毕,不允许在此修改']);
                 }*/
                 //存在并且有值 则修改
-                $patient = DB::table('patient_infos')->where('temp_patient_id',$pid['patient_id'])->update($patient_info);
+                $patient = DB::table('patient_infos')->where('id',$pid['patient_id'])->update($patient_info);
             }else{
                 $p = DB::table('patient_infos')->where('temp_patient_id',$param['pnum'])->find();
                 if($p){