修改重开处方修改审核状态
This commit is contained in:
parent
fd6338cbdf
commit
b86c253d0f
@ -1025,22 +1025,6 @@ class UserDoctorService extends BaseService
|
||||
Db::beginTransaction();
|
||||
|
||||
try {
|
||||
// 修改订单-处方表
|
||||
$params = array();
|
||||
$params['order_prescription_id'] = $order_prescription_id;
|
||||
|
||||
$data = array();
|
||||
$data['prescription_status'] = 1; // 处方状态(1:待审核 3:待使用 4:已失效 5:已使用)
|
||||
$data['pharmacist_fail_reason'] = ""; // 药师审核驳回原因
|
||||
$data['platform_audit_status'] = 0; // 处方平台审核状态(0:审核中 1:审核成功 2:审核驳回)
|
||||
$data['platform_fail_reason'] = ""; // 处方平台驳回原因
|
||||
$data['doctor_created_time'] = date('Y-m-d H:i:s',time());
|
||||
if ($order_prescription['doctor_advice'] != $doctor_advice) {
|
||||
$data['doctor_advice'] = $doctor_advice; // 医嘱
|
||||
}
|
||||
|
||||
OrderPrescription::edit($params, $data);
|
||||
|
||||
// 删除订单-处方关联疾病表
|
||||
$params = array();
|
||||
$params['order_prescription_id'] = $order_prescription_id;
|
||||
@ -1138,6 +1122,15 @@ class UserDoctorService extends BaseService
|
||||
$data['prescription_img'] = $prescription_open_result['prescription_img_url'];
|
||||
$data['prescription_pdf'] = $prescription_open_result['prescription_pdf_url'];
|
||||
$data['doctor_created_time'] = date('Y-m-d H:i:s',time());
|
||||
$data['prescription_status'] = 1; // 处方状态(1:待审核 3:待使用 4:已失效 5:已使用)
|
||||
$data['pharmacist_audit_status'] = 0; // 药师审核驳回原因
|
||||
$data['pharmacist_fail_reason'] = ""; // 药师审核驳回原因
|
||||
$data['platform_audit_status'] = 0; // 处方平台审核状态(0:审核中 1:审核成功 2:审核驳回)
|
||||
$data['platform_fail_reason'] = ""; // 处方平台驳回原因
|
||||
$data['doctor_created_time'] = date('Y-m-d H:i:s',time());
|
||||
if ($order_prescription['doctor_advice'] != $doctor_advice) {
|
||||
$data['doctor_advice'] = $doctor_advice; // 医嘱
|
||||
}
|
||||
|
||||
$params = array();
|
||||
$params['order_prescription_id'] = $order_prescription['order_prescription_id'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user