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

字段排序 #1097

Open
gghxjava opened this issue Jan 12, 2024 · 2 comments
Open

字段排序 #1097

gghxjava opened this issue Jan 12, 2024 · 2 comments
Labels
type: bug Something isn't working

Comments

@gghxjava
Copy link

image

我写了这个 但是不生效,而且 我想知道field.order 有什么用 ,看起来是可以排序的

@gghxjava gghxjava added the type: bug Something isn't working label Jan 12, 2024
@gghxjava
Copy link
Author

并且我发现大佬你的排序 只能处理两层的继承 如果是3层的继承 只会生效2层的继承

@tangcent
Copy link
Owner

我写了这个 但是不生效,而且 我想知道field.order 有什么用 ,看起来是可以排序的

配了之后,你就可以在注释上控制顺序了:

    /**
     * @order 100
     */
    private Integer xxx;

并且我发现大佬你的排序 只能处理两层的继承 如果是3层的继承 只会生效2层的继承

没有做层次的限制,按说你在任意层都可以注释@order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants