正在显示
2 个修改的文件
包含
5 行增加
和
4 行删除
不能预览此文件类型
@@ -93,8 +93,8 @@ func LoadPerformanceDimensions(rows [][]string) ([]*PerformanceDimension, error) | @@ -93,8 +93,8 @@ func LoadPerformanceDimensions(rows [][]string) ([]*PerformanceDimension, error) | ||
93 | dimensions = append(dimensions, dimension) | 93 | dimensions = append(dimensions, dimension) |
94 | } | 94 | } |
95 | result := make([]*PerformanceDimension, 0) | 95 | result := make([]*PerformanceDimension, 0) |
96 | - for _, item := range dimensions { | ||
97 | - for _, name := range sortBy { | 96 | + for _, name := range sortBy { |
97 | + for _, item := range dimensions { | ||
98 | if name == item.Name { | 98 | if name == item.Name { |
99 | result = append(result, item) | 99 | result = append(result, item) |
100 | } | 100 | } |
@@ -140,8 +140,9 @@ func loadPerformanceModule(forms []*PerformanceApplicationForm) ([]*PerformanceM | @@ -140,8 +140,9 @@ func loadPerformanceModule(forms []*PerformanceApplicationForm) ([]*PerformanceM | ||
140 | modules = append(modules, module) | 140 | modules = append(modules, module) |
141 | } | 141 | } |
142 | result := make([]*PerformanceModule, 0) | 142 | result := make([]*PerformanceModule, 0) |
143 | - for _, item := range modules { | ||
144 | - for _, name := range sortBy { | 143 | + |
144 | + for _, name := range sortBy { | ||
145 | + for _, item := range modules { | ||
145 | if name == item.ModuleName { | 146 | if name == item.ModuleName { |
146 | result = append(result, item) | 147 | result = append(result, item) |
147 | } | 148 | } |
-
请 注册 或 登录 后发表评论