|
@@ -1981,7 +1981,7 @@ func GetPatientDialysisRecordList(patientid int64, startime int64, endtime int64
|
1981
|
1981
|
db = db.Where("x.dialysis_date <= ?", endtime)
|
1982
|
1982
|
}
|
1983
|
1983
|
|
1984
|
|
- err = db.Select("x.id,x.dialysis_date,x.schedual_type,s.mode_id").Joins("left join x.patient_id = s.patient_id and x.dialysis_date = s.schedule_date ").Scan(&order).Error
|
|
1984
|
+ err = db.Select("x.id,x.dialysis_date,x.schedual_type,s.mode_id").Joins("left join xt_schedule as s on x.patient_id = s.patient_id and x.dialysis_date = s.schedule_date ").Scan(&order).Error
|
1985
|
1985
|
return order, err
|
1986
|
1986
|
}
|
1987
|
1987
|
|