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