Browse Source

Merge branch 'xt_statistics_branch' of http://git.shengws.com/csx/XT_New into xt_statistics_branch

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

+ 1 - 1
service/gobal_config_service.go View File

@@ -160,6 +160,6 @@ func GetPrint(ids []int64, orgid int64) (doctor []*models.DoctorAdvice, err erro
160 160
 
161 161
 func GetExportLogByType(org_id int64, log_type int64) (log []*models.ExportLog, err error) {
162 162
 	err = readDb.Model(&models.ExportLog{}).Where("user_org_id = ? AND status = 1 AND log_type = ?", org_id, log_type).
163
-		Preload("ExportErrLog", "status = 1").Find(&log).Error
163
+		Preload("ExportErrLog", "status = 1").Order("export_time desc").Find(&log).Error
164 164
 	return
165 165
 }