9
This commit is contained in:
parent
5b5997f2e2
commit
226b106997
@ -375,7 +375,7 @@ func (r *OrderProductDao) GetOrderProductPageSearch(req requests.GetOrderProduct
|
||||
// 查询抄方医生对应的问诊订单ID
|
||||
inquirySubQuery := global.Db.Model(&model.OrderInquiry{}).
|
||||
Select("order_inquiry_id").
|
||||
Where(gorm.Expr("transfer_doctor_id IN (?)", transferDoctorSubQuery))
|
||||
Where(gorm.Expr("doctor_id IN (?)", transferDoctorSubQuery))
|
||||
|
||||
// 使用 OR 条件:患者匹配 OR 原医生匹配 OR 抄方医生匹配
|
||||
// 通过嵌套 Where 子查询把 OR 条件包在一组括号里,避免影响其它条件
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user