浏览代码

体积小

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