Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: parse schema column order #2039

Merged

Conversation

KANLON
Copy link
Contributor

@KANLON KANLON commented Oct 1, 2022

我看代码中解析的view的列信息的时候,使用了HashMap ,然后 fastjson 解析的时候也是默认使用了无序的方式,这样解析出的列信息是无序的,但是在view的model属性中存储的列信息是有顺序的,前端解析的时候也是有顺序的,所以我这里优化了一下代码,把后端解析的列信息时也返回有序的,目前不知道有什么地方会后端需要用到有序的地方,但是我觉得保持跟前端解析顺序一样还是比较好

麻烦大佬帮忙code view 一下了

@scottsut scottsut requested a review from tianlu-root March 30, 2023 10:07
@tianlu-root tianlu-root merged commit ef882f4 into running-elephant:dev Mar 30, 2023
@scottsut
Copy link
Contributor

感谢参与贡献!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants