药品订单列表新增厨房变好
This commit is contained in:
@@ -35,6 +35,7 @@ type getOrderProductPage struct {
|
||||
Remarks string `json:"remarks"` // 订单备注
|
||||
RefundStatus int `json:"refund_status"` // 商品订单退款状态(0:无退款 1:申请退款 2:退款中 3:退款成功 4:拒绝退款 5:退款关闭 6:退款异常)
|
||||
ReportPreStatus int `json:"report_pre_status"` // 上报处方平台状态(0:未上报 1:已上报 2:上报失败))
|
||||
PrescriptionCode string `json:"prescription_code"` // 处方编号
|
||||
ConsigneeNameMask string `json:"consignee_name_mask"` // 收货人姓名(掩码)
|
||||
ConsigneeTelMask string `json:"consignee_tel_mask"` // 收货人电话(掩码)
|
||||
DoctorName string `json:"doctor_name"` // 医生姓名
|
||||
@@ -154,6 +155,10 @@ func GetOrderProductPageResponse(orderProduct []*model.OrderProduct) []getOrderP
|
||||
res.PatientAge = v.OrderInquiry.PatientAge
|
||||
}
|
||||
|
||||
if v.OrderPrescription != nil {
|
||||
res.PrescriptionCode = v.OrderPrescription.PrescriptionCode
|
||||
}
|
||||
|
||||
// 将转换后的结构体添加到新切片中
|
||||
getOrderProductPages[i] = res
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user