资讯问诊详情返回患者和医生名字
This commit is contained in:
parent
78d71cfd5a
commit
7ca22bdf5f
@ -44,6 +44,15 @@ public class ConsultationGoodVO implements Serializable {
|
|||||||
*/
|
*/
|
||||||
private BigDecimal totalPrice;
|
private BigDecimal totalPrice;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 医生名称
|
||||||
|
*/
|
||||||
|
private String personName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 患者名称
|
||||||
|
*/
|
||||||
|
private String patientName;
|
||||||
/**
|
/**
|
||||||
* 科室人员头像地址
|
* 科室人员头像地址
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -181,10 +181,11 @@
|
|||||||
gr.total_price,
|
gr.total_price,
|
||||||
gr.order_time,
|
gr.order_time,
|
||||||
gr.order_status,
|
gr.order_status,
|
||||||
IF( gr.order_type = 'HEALTH_CONSULTATION',
|
pi.patient_name,
|
||||||
(SELECT person_picture_url FROM hospital_person_info WHERE id =gr.hospital_person_id ), NULL ) personPictureUrl,
|
hpi.person_name,
|
||||||
IF( gr.order_type = 'HEALTH_CONSULTATION', ( SELECT person_phone FROM hospital_person_info WHERE id =gr.hospital_person_id ), NULL ) personPhone,
|
hpi.person_picture_url ,
|
||||||
IF( gr.order_type = 'HEALTH_CONSULTATION', ( SELECT academic_title FROM hospital_person_info WHERE id = gr.hospital_person_id ), NULL ) academicTitle,
|
hpi.person_phone ,
|
||||||
|
hpi.academic_title,
|
||||||
gr.hospital_person_name,
|
gr.hospital_person_name,
|
||||||
ci.problem_description,
|
ci.problem_description,
|
||||||
ci.situation_description,
|
ci.situation_description,
|
||||||
@ -197,6 +198,7 @@
|
|||||||
goods_order gr
|
goods_order gr
|
||||||
LEFT JOIN hospital_person_info hpi on hpi.id = gr.hospital_person_id
|
LEFT JOIN hospital_person_info hpi on hpi.id = gr.hospital_person_id
|
||||||
LEFT JOIN consultation_info ci ON ci.id =gr.consultation_info_id
|
LEFT JOIN consultation_info ci ON ci.id =gr.consultation_info_id
|
||||||
|
LEFT JOIN patient_info pi on pi.id=gr.patient_id
|
||||||
<where>
|
<where>
|
||||||
<if test="orderNo != null and orderNo != ''">
|
<if test="orderNo != null and orderNo != ''">
|
||||||
and gr.order_no = #{orderNo}
|
and gr.order_no = #{orderNo}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user