|
|
|
|
@ -7,7 +7,8 @@ class ReportService
|
|
|
|
|
{
|
|
|
|
|
public function Save($res)
|
|
|
|
|
{
|
|
|
|
|
if(!isset($res['体检号'])) return \Yz::echoError1("数据非预期,缺失'体检号'");
|
|
|
|
|
//if(!isset($res['体检号'])) return \Yz::echoError1("数据非预期,缺失'体检号'");
|
|
|
|
|
if(!isset($res['体检号'])) return ['status'=>false,'msg'=>"数据非预期,缺失'体检号'",'data'=>'report'];
|
|
|
|
|
//根据体检号查询,获取id,万一不小心有多个相同的体检号 所以返回数组,正常就1个
|
|
|
|
|
$report_l1_records_ids = DB::table('report_l1_records')->where(['体检号' => $res['体检号']])->pluck('id')->toArray();
|
|
|
|
|
//查找对应的收费项目列表 获取id数组
|
|
|
|
|
@ -93,6 +94,7 @@ class ReportService
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return \Yz::Return(true,"接收完成",'report');
|
|
|
|
|
//return \Yz::Return(true,"接收完成",'report');
|
|
|
|
|
return ['status'=>true,'msg'=>'接收完成','data'=>'report'];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|