修改字段类型
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user