Browse Source

体积小

XMLWAN 3 years ago
parent
commit
ed21a3d440
1 changed files with 2 additions and 1 deletions
  1. 2 1
      service/xcx_mobile_api_service.go

+ 2 - 1
service/xcx_mobile_api_service.go View File

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