浏览代码

修改排序

xyxie 2 周之前
父节点
当前提交
b0ab26eef5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/data_manage/eta_business_chart_permission.go

+ 1 - 1
models/data_manage/eta_business_chart_permission.go

@@ -120,7 +120,7 @@ type ChartDescription struct {
 func (m *EtaBusinessChartPermission) GetChartDescriptionListByChartInfoIds(chartInfoIds []int) (list []*ChartDescription, err error) {
 	o := orm.NewOrmUsingDB("data")
 	sql := `
-		SELECT * FROM chart_description WHERE chart_info_id IN (`+utils.GetOrmInReplace(len(chartInfoIds))+`)
+		SELECT * FROM chart_description WHERE chart_info_id IN (`+utils.GetOrmInReplace(len(chartInfoIds))+`) ORDER BY id DESC
 	`
 	_, err = o.Raw(sql, chartInfoIds).QueryRows(&list)
 	return list, err