药品订单列表新增厨房变好

This commit is contained in:
2023-09-14 15:22:15 +08:00
parent e1887b52e7
commit 3113f2471b
3 changed files with 54 additions and 43 deletions
+5
View File
@@ -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")