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