修改字段类型
This commit is contained in:
parent
5c95de8b1b
commit
1071b47150
@ -1069,8 +1069,8 @@ class PatientOrderService extends BaseService
|
|||||||
}
|
}
|
||||||
|
|
||||||
$result = array();
|
$result = array();
|
||||||
$result['inquiry_no'] = $order_product['order_product_no']; // 订单编号
|
$result['inquiry_no'] = (string)$order_product['order_product_no']; // 订单编号
|
||||||
$result['order_product_id'] = $order_product['order_product_id']; // 订单主键id
|
$result['order_product_id'] = (string)$order_product['order_product_id']; // 订单主键id
|
||||||
|
|
||||||
return success($result);
|
return success($result);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1037,6 +1037,7 @@ class UserDoctorService extends BaseService
|
|||||||
$params['order_prescription_id'] = $order_prescription_id;
|
$params['order_prescription_id'] = $order_prescription_id;
|
||||||
OrderPrescriptionIcd::deleteOrderPrescriptionIcd($params);
|
OrderPrescriptionIcd::deleteOrderPrescriptionIcd($params);
|
||||||
|
|
||||||
|
// 处方疾病数据
|
||||||
foreach ($prescription_icd as $item) {
|
foreach ($prescription_icd as $item) {
|
||||||
// 获取疾病信息
|
// 获取疾病信息
|
||||||
$params = array();
|
$params = array();
|
||||||
@ -1067,6 +1068,7 @@ class UserDoctorService extends BaseService
|
|||||||
$params['order_prescription_id'] = $order_prescription_id;
|
$params['order_prescription_id'] = $order_prescription_id;
|
||||||
OrderPrescriptionProduct::deleteOrderPrescriptionProduct($params);
|
OrderPrescriptionProduct::deleteOrderPrescriptionProduct($params);
|
||||||
|
|
||||||
|
// 处方商品数据
|
||||||
foreach ($prescription_product as $item) {
|
foreach ($prescription_product as $item) {
|
||||||
// 获取商品数据
|
// 获取商品数据
|
||||||
$params = array();
|
$params = array();
|
||||||
@ -1113,6 +1115,22 @@ class UserDoctorService extends BaseService
|
|||||||
unset($product);
|
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 = array();
|
||||||
$data['order_prescription_id'] = $order_prescription_id;
|
$data['order_prescription_id'] = $order_prescription_id;
|
||||||
@ -1290,7 +1308,6 @@ class UserDoctorService extends BaseService
|
|||||||
}
|
}
|
||||||
|
|
||||||
$OrderPrescriptionService = new OrderPrescriptionService();
|
$OrderPrescriptionService = new OrderPrescriptionService();
|
||||||
|
|
||||||
$prescription_img = $OrderPrescriptionService->openPrescription($order_prescription->order_prescription_id,$user_info['user_id']);
|
$prescription_img = $OrderPrescriptionService->openPrescription($order_prescription->order_prescription_id,$user_info['user_id']);
|
||||||
if (empty($prescription_img)){
|
if (empty($prescription_img)){
|
||||||
Db::rollBack();
|
Db::rollBack();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user