Browse Source

体积小

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

+ 1 - 1
service/xcx_mobile_api_service.go View File

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