This commit is contained in:
2023-11-03 15:47:37 +08:00
parent 80e3c1cdde
commit 2fcbd1a72c
3 changed files with 132 additions and 2 deletions
+4
View File
@@ -35,6 +35,10 @@ func (r *DoctorWithdrawalOrderDao) GetDoctorWithdrawalOrderPageSearch(req reques
// 构建查询条件
query := global.Db.Model(&model.DoctorWithdrawalOrder{})
if req.WithdrawalId != "" {
query = query.Where("withdrawal_id = ?", req.WithdrawalId)
}
// 医生
query = query.Preload("UserDoctor", func(db *gorm.DB) *gorm.DB {
return db.Omit("open_id", "union_id", "wx_session_key")