This commit is contained in:
parent
23e97b83ac
commit
af95e480a8
@ -1998,6 +1998,25 @@ class PatientOrderService extends BaseService
|
|||||||
$order_prescription = OrderPrescription::getWithPage($params, ['*'], $page, $per_page);
|
$order_prescription = OrderPrescription::getWithPage($params, ['*'], $page, $per_page);
|
||||||
if (!empty($order_prescription['data'])) {
|
if (!empty($order_prescription['data'])) {
|
||||||
foreach ($order_prescription['data'] as &$item) {
|
foreach ($order_prescription['data'] as &$item) {
|
||||||
|
|
||||||
|
//处理抄方情况
|
||||||
|
$params = array();
|
||||||
|
$params['order_inquiry_id'] = $item['order_inquiry_id'];
|
||||||
|
$OrderInquiry = OrderInquiry::getOne($params);
|
||||||
|
if (!empty($OrderInquiry)) {
|
||||||
|
//为抄方订单
|
||||||
|
if (!empty($OrderInquiry['transfer_doctor_id'])) {
|
||||||
|
$params = array();
|
||||||
|
$params['doctor_id'] = $OrderInquiry['transfer_doctor_id'];
|
||||||
|
$fields = ['doctor_id','user_name','doctor_title'];
|
||||||
|
|
||||||
|
$UserDoctor = UserDoctor::getOne($params, $fields);
|
||||||
|
if (!empty($UserDoctor)) {
|
||||||
|
$item['UserDoctor'] = $UserDoctor->toArray();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($item['UserDoctor'])) {
|
if (!empty($item['UserDoctor'])) {
|
||||||
$item['UserDoctor']['doctor_title'] = DoctorTitleCode::getMessage($item['UserDoctor']['doctor_title']);
|
$item['UserDoctor']['doctor_title'] = DoctorTitleCode::getMessage($item['UserDoctor']['doctor_title']);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1349,12 +1349,8 @@ class UserDoctorService extends BaseService
|
|||||||
$params['multi_point_status'] = 1;
|
$params['multi_point_status'] = 1;
|
||||||
$transfer_prescription_list = UserDoctor::getList($params);
|
$transfer_prescription_list = UserDoctor::getList($params);
|
||||||
if (!empty($transfer_prescription_list)) {
|
if (!empty($transfer_prescription_list)) {
|
||||||
dump($transfer_prescription_list);
|
|
||||||
$transfer_doctor = $transfer_prescription_list[0];//取第一个抄方医生
|
$transfer_doctor = $transfer_prescription_list[0];//取第一个抄方医生
|
||||||
$is_transfer_prescription = true;
|
$is_transfer_prescription = true;
|
||||||
|
|
||||||
dump($transfer_doctor);
|
|
||||||
|
|
||||||
//修改抄方医生id
|
//修改抄方医生id
|
||||||
$data = array();
|
$data = array();
|
||||||
$data['transfer_doctor_id'] = $transfer_doctor['doctor_id'];
|
$data['transfer_doctor_id'] = $transfer_doctor['doctor_id'];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user