XMLWAN преди 3 години
родител
ревизия
ed21a3d440
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      service/xcx_mobile_api_service.go

+ 2 - 1
service/xcx_mobile_api_service.go Целия файл

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