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