浏览代码

fix:修改排序

zqbao 9 月之前
父节点
当前提交
740b30ba0f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/chart_permission.go

+ 1 - 1
models/chart_permission.go

@@ -108,7 +108,7 @@ func GetChartPermissionListByIds(chartPermissionIds []int) (items []*ChartPermis
 
 func GetChartPermissionList() (items []*ChartPermissionListTree, err error) {
 	o := orm.NewOrmUsingDB("rddp")
-	sql := `SELECT * FROM chart_permission WHERE enabled=1 AND product_id=1 ORDER BY sort ASC`
+	sql := `SELECT * FROM chart_permission WHERE enabled=1 AND product_id=1 ORDER BY sort, chart_permission_id ASC`
 	_, err = o.Raw(sql).QueryRows(&items)
 	return
 }