药品订单列表新增厨房变好
This commit is contained in:
@@ -96,6 +96,11 @@ func (r *OrderProductDao) GetOrderProductPageSearch(req requests.GetOrderProduct
|
||||
query = query.Where(gorm.Expr("doctor_id IN (?)", subQuery))
|
||||
}
|
||||
|
||||
// 处方
|
||||
query = query.Preload("OrderPrescription", func(db *gorm.DB) *gorm.DB {
|
||||
return db.Select("order_prescription_id", "prescription_code")
|
||||
})
|
||||
|
||||
// 问诊订单
|
||||
query = query.Preload("OrderInquiry", func(db *gorm.DB) *gorm.DB {
|
||||
return db.Select("order_inquiry_id", "patient_name_mask", "patient_sex", "patient_age")
|
||||
|
||||
Reference in New Issue
Block a user