XMLWAN пре 3 година
родитељ
комит
3e547dae6c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      service/xcx_mobile_api_service.go

+ 1 - 1
service/xcx_mobile_api_service.go Прегледај датотеку

@@ -253,7 +253,7 @@ func GetOrgInfo(id int64) (models.XcxSgjUserOrg, error) {
253 253
 
254 254
 func GetEducationList(startime int64, endtime int64, patient_id int64) (treatment []*models.XcxTreatmentSummary, err error) {
255 255
 
256
-	err = XTReadDB().Model(&treatment).Where("assessment_date>=? and assessment_date<=? and patient_id = ? and status  =1", startime, endtime, patient_id).Find(&treatment).Error
256
+	err = XTReadDB().Model(&treatment).Where("assessment_date>=? and assessment_date<=? and patient_id = ? and status  =1", startime, endtime, patient_id).Order("assessment_date desc").Find(&treatment).Error
257 257
 	return treatment, err
258 258
 }
259 259