修改字段类型
This commit is contained in:
parent
5c95de8b1b
commit
1071b47150
@ -1069,8 +1069,8 @@ class PatientOrderService extends BaseService
|
||||
}
|
||||
|
||||
$result = array();
|
||||
$result['inquiry_no'] = $order_product['order_product_no']; // 订单编号
|
||||
$result['order_product_id'] = $order_product['order_product_id']; // 订单主键id
|
||||
$result['inquiry_no'] = (string)$order_product['order_product_no']; // 订单编号
|
||||
$result['order_product_id'] = (string)$order_product['order_product_id']; // 订单主键id
|
||||
|
||||
return success($result);
|
||||
}
|
||||
|
||||
@ -1037,6 +1037,7 @@ class UserDoctorService extends BaseService
|
||||
$params['order_prescription_id'] = $order_prescription_id;
|
||||
OrderPrescriptionIcd::deleteOrderPrescriptionIcd($params);
|
||||
|
||||
// 处方疾病数据
|
||||
foreach ($prescription_icd as $item) {
|
||||
// 获取疾病信息
|
||||
$params = array();
|
||||
@ -1067,6 +1068,7 @@ class UserDoctorService extends BaseService
|
||||
$params['order_prescription_id'] = $order_prescription_id;
|
||||
OrderPrescriptionProduct::deleteOrderPrescriptionProduct($params);
|
||||
|
||||
// 处方商品数据
|
||||
foreach ($prescription_product as $item) {
|
||||
// 获取商品数据
|
||||
$params = array();
|
||||
@ -1113,6 +1115,22 @@ class UserDoctorService extends BaseService
|
||||
unset($product);
|
||||
}
|
||||
|
||||
$OrderPrescriptionService = new OrderPrescriptionService();
|
||||
$prescription_img = $OrderPrescriptionService->openPrescription($order_prescription->order_prescription_id,$user_info['user_id']);
|
||||
if (empty($prescription_img)){
|
||||
Db::rollBack();
|
||||
return fail(HttpEnumCode::SERVER_ERROR, "处方开具失败");
|
||||
}
|
||||
|
||||
// 修改处方表
|
||||
$data = array();
|
||||
$data['prescription_img'] = $prescription_img;
|
||||
$data['doctor_created_time'] = date('Y-m-d H:i:s',time());
|
||||
|
||||
$params = array();
|
||||
$params['order_prescription_id'] = $order_prescription['order_prescription_id'];
|
||||
OrderPrescription::edit($params,$data);
|
||||
|
||||
// 加入分配药师队列
|
||||
$data = array();
|
||||
$data['order_prescription_id'] = $order_prescription_id;
|
||||
@ -1290,7 +1308,6 @@ class UserDoctorService extends BaseService
|
||||
}
|
||||
|
||||
$OrderPrescriptionService = new OrderPrescriptionService();
|
||||
|
||||
$prescription_img = $OrderPrescriptionService->openPrescription($order_prescription->order_prescription_id,$user_info['user_id']);
|
||||
if (empty($prescription_img)){
|
||||
Db::rollBack();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user