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