|
@@ -429,9 +429,9 @@ class Inspectregister extends Base
|
|
|
$exam_info['application_department'] = isset($param['application_department']) ? $param['application_department'] : '';
|
|
|
$exam_info['application_doctor'] = isset($param['application_doctor']) ? $param['application_doctor'] : '';
|
|
|
if(isset($param['exam_id']) && !empty($param['exam_id'])){
|
|
|
- $exam_info['id'] = UUIDs::uuid16();
|
|
|
$exam = DB::table('exams')->where('id',$param['exam_id'])->update($exam_info);
|
|
|
}else{
|
|
|
+ $exam_info['id'] = UUIDs::uuid16();
|
|
|
$exam_info['createdAt'] = date('Y-m-d H:i:s',time());
|
|
|
$exam = DB::table('exams')->insert($exam_info);
|
|
|
}
|