|
@@ -271,7 +271,8 @@ func GetDoctorAdviceGroup(patient_id int64, startime int64, endtime int64) (advi
|
271
|
271
|
}
|
272
|
272
|
|
273
|
273
|
func GetHisDoctorAdviceGroup(patient_id int64, startime int64, endtime int64) (advice []*models.XcxHisDoctorAdviceInfo, err error) {
|
274
|
|
-
|
|
274
|
+ err = XTReadDB().Where("patient_id = ? and advice_date >=? and advice_date<=? and status = 1", patient_id, startime, endtime).Group("advice_date").Find(&advice).Error
|
|
275
|
+ return advice, err
|
275
|
276
|
}
|
276
|
277
|
|
277
|
278
|
func GetDoctorAdvice(patient_id int64, startime int64, endtime int64) (advice []*models.XcxDoctorAdvice, err error) {
|