ソースを参照

fix: ppt排序

hsun 3 ヶ月 前
コミット
119701c9c8
1 ファイル変更1 行追加1 行削除
  1. 1 1
      controllers/ppt_report.go

+ 1 - 1
controllers/ppt_report.go

@@ -258,7 +258,7 @@ func (this *PptV2Controller) ReportList() {
 		br.ErrMsg = fmt.Sprintf("获取PPT总数失败, %v", e)
 		return
 	}
-	list, e := pptOb.GetPageItemsByCondition(cond, pars, models.PptReportQueryFields, "", startSize, pageSize)
+	list, e := pptOb.GetPageItemsByCondition(cond, pars, models.PptReportQueryFields, "modify_time DESC", startSize, pageSize)
 	if e != nil {
 		br.Msg = "获取失败"
 		br.ErrMsg = fmt.Sprintf("获取PPT失败, %v", e)