XMLWAN il y a 3 ans
Parent
révision
ed21a3d440
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      service/xcx_mobile_api_service.go

+ 2 - 1
service/xcx_mobile_api_service.go Voir le fichier

@@ -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) {