小程序专家咨询订单修改

This commit is contained in:
zhangheng 2023-11-01 09:17:32 +08:00
parent 3d0050d46b
commit ae67d61671
2 changed files with 16 additions and 1 deletions

View File

@ -251,4 +251,14 @@ public class AppletGoodsOrderVO implements Serializable {
* 科室人员头像地址 * 科室人员头像地址
*/ */
private String personPictureUrl; private String personPictureUrl;
/**
* 科室人员联系电话
*/
private String personPhone;
/**
* 人员职称主任医师CHIEF_PHYSICIAN副主任医师DEPUTY_CHIEF_PHYSICIAN主治医师ATTENDING_DOCTOR医师PHYSICIAN医士HEALER住院医师RESIDENT_PHYSICIAN
*/
private String academicTitle;
} }

View File

@ -107,6 +107,7 @@
gr.hospital_person_id, gr.hospital_person_id,
gr.health_consultation_content, gr.health_consultation_content,
gr.health_appoint_date, gr.health_appoint_date,
gr.remark,
god.integral_deduction_count, god.integral_deduction_count,
god.id goodsOrderDetailsId, god.id goodsOrderDetailsId,
god.order_no godOrderNo, god.order_no godOrderNo,
@ -130,6 +131,10 @@
(select rf.success_time from refund_info rf where rf.order_no = gr.order_no) update_time, (select rf.success_time from refund_info rf where rf.order_no = gr.order_no) update_time,
IF( gr.order_type = 'HEALTH_CONSULTATION', ( SELECT person_picture_url FROM hospital_person_info WHERE id = IF( gr.order_type = 'HEALTH_CONSULTATION', ( SELECT person_picture_url FROM hospital_person_info WHERE id =
gr.hospital_person_id ), NULL ) person_picture_url, gr.hospital_person_id ), NULL ) person_picture_url,
IF( gr.order_type = 'HEALTH_CONSULTATION', ( SELECT person_phone FROM hospital_person_info WHERE id =
gr.hospital_person_id ), NULL ) person_phone,
IF( gr.order_type = 'HEALTH_CONSULTATION', ( SELECT academic_title FROM hospital_person_info WHERE id =
gr.hospital_person_id ), NULL ) academic_title,
gr.hospital_person_name gr.hospital_person_name
FROM FROM
goods_order gr goods_order gr
@ -384,7 +389,7 @@
LEFT JOIN hospital_person_info hpi ON hpi.id = gor.hospital_person_id LEFT JOIN hospital_person_info hpi ON hpi.id = gor.hospital_person_id
LEFT JOIN order_evaluate_info nei ON nei.order_no = gor.order_no LEFT JOIN order_evaluate_info nei ON nei.order_no = gor.order_no
where where
<if test="orderTypeList != null and orderTypeList.size > 0"> <if test="orderStatusList != null and orderStatusList.size > 0">
gor.order_status in gor.order_status in
<foreach collection="orderStatusList" item="orderStatusList" open="(" separator="," close=")"> <foreach collection="orderStatusList" item="orderStatusList" open="(" separator="," close=")">
#{orderStatusList} #{orderStatusList}