修改检测中订单
This commit is contained in:
parent
4bb1e72d78
commit
7cf3bed599
@ -23,6 +23,7 @@ class DetectionRequest extends FormRequest
|
||||
],
|
||||
'getDetectionOrderFirst' => [ // 获取患者进行中的检测订单
|
||||
'family_id',
|
||||
'detection_project_id',
|
||||
],
|
||||
'bindDetectionTube' => [ // 绑定检测管
|
||||
'detection_bar_code',
|
||||
|
||||
@ -482,11 +482,13 @@ class DetectionService extends BaseService
|
||||
$user_info = $this->request->getAttribute("userInfo") ?? [];
|
||||
|
||||
$family_id = $this->request->input("family_id");
|
||||
$detection_project_id = $this->request->input("detection_project_id");
|
||||
|
||||
// 检测是否存在同类型未完成的检测订单
|
||||
$params = array();
|
||||
$params['patient_id'] = $user_info['client_user_id'];
|
||||
$params['family_id'] = $family_id;
|
||||
$params['detection_project_id'] = $detection_project_id;
|
||||
$order_detection = OrderDetection::getLastOne($params);
|
||||
if (empty($order_detection)){
|
||||
return success();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user