refactor: parse schema column order #2039
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
我看代码中解析的view的列信息的时候,使用了HashMap ,然后 fastjson 解析的时候也是默认使用了无序的方式,这样解析出的列信息是无序的,但是在view的model属性中存储的列信息是有顺序的,前端解析的时候也是有顺序的,所以我这里优化了一下代码,把后端解析的列信息时也返回有序的,目前不知道有什么地方会后端需要用到有序的地方,但是我觉得保持跟前端解析顺序一样还是比较好
麻烦大佬帮忙code view 一下了