处方详情新增药品订单id字段
This commit is contained in:
@@ -14,6 +14,7 @@ type OrderPrescriptionDto struct {
|
||||
PatientId string `json:"patient_id"` // 患者id
|
||||
FamilyId string `json:"family_id"` // 家庭成员id(就诊用户)
|
||||
PharmacistId string `json:"pharmacist_id"` // 药师id
|
||||
OrderProductId string `json:"order_product_id"` // 药品订单id
|
||||
PrescriptionStatus int `json:"prescription_status"` // 处方状态(1:待审核 2:待使用 3:已失效 4:已使用)
|
||||
PharmacistAuditStatus int `json:"pharmacist_audit_status"` // 药师审核状态(0:审核中 1:审核成功 2:审核驳回)
|
||||
PharmacistVerifyTime model.LocalTime `json:"pharmacist_verify_time"` // 药师审核时间
|
||||
@@ -197,3 +198,11 @@ func (r *OrderPrescriptionDto) LoadOrderPrescriptionProduct(m []*model.OrderPres
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
||||
// LoadOrderProductId 加载药品订单id
|
||||
func (r *OrderPrescriptionDto) LoadOrderProductId(m *model.OrderProduct) *OrderPrescriptionDto {
|
||||
if m != nil {
|
||||
r.OrderProductId = fmt.Sprintf("%d", m.OrderProductId)
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user