diff --git a/api/dto/OrderProduct.go b/api/dto/OrderProduct.go index ee5601b..931037f 100644 --- a/api/dto/OrderProduct.go +++ b/api/dto/OrderProduct.go @@ -13,6 +13,7 @@ type OrderProductDto struct { OrderPrescriptionId string `json:"order_prescription_id"` // 订单-处方id;NOT NULL OrderId string `json:"order_id"` // 订单id DoctorId string `json:"doctor_id"` // 医生id + TransferDoctorId string `json:"transfer_doctor_id"` // 接受抄方的医生id PatientId string `json:"patient_id"` // 患者id FamilyId string `json:"family_id"` // 家庭成员id(就诊用户) OrderProductNo string `json:"order_product_no"` // 订单编号 @@ -55,7 +56,7 @@ type OrderProductDto struct { OrderProductRefund *OrderProductRefundDto `json:"order_product_refund"` // 退款数据 OrderProductItem []*OrderProductItemDto `json:"order_product_item"` // 商品数据 OrderProductLogistics *OrderProductLogisticsDto `json:"order_product_logistics"` // 物流数据 - UserDoctor *UserDoctorDto `json:"inquiry_doctor"` // 原始医生(问诊医生信息) + UserDoctor *UserDoctorDto `json:"inquiry_doctor"` // 原始医生(问诊医生信息) TransferUserDoctor *UserDoctorDto `json:"prescription_doctor"` // 接受抄方的医生(处方医生信息) OrderPrescription *OrderPrescriptionDto `json:"order_prescription"` // 处方数据 OrderInquiryCase *OrderInquiryCaseDto `json:"order_inquiry_case"` // 问诊病例 @@ -216,7 +217,7 @@ func (r *OrderProductDto) LoadDoctorName(m *model.UserDoctor) *OrderProductDto { return r } -// LoadUserDoctor 加载原始医生信息 +// LoadUserDoctor 加载问诊医生信息 func (r *OrderProductDto) LoadUserDoctor(m *model.UserDoctor) *OrderProductDto { if m != nil { r.UserDoctor = GetUserDoctorDto(m) @@ -238,6 +239,7 @@ func (r *OrderProductDto) LoadOrderInquiryAttr(m *model.OrderInquiry) *OrderProd r.PatientNameMask = m.PatientNameMask r.PatientSex = m.PatientSex r.PatientAge = m.PatientAge + r.TransferDoctorId = string(m.TransferDoctorId) } return r }