-
Notifications
You must be signed in to change notification settings - Fork 202
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
perf: 脚本列表,脚本语言的排序需要按照语言名称的字典顺序 #1317 #1348
Conversation
// ScriptTypeEnum | ||
if (baseSearchCondition.getOrder() == Order.ASCENDING.getOrder()) { | ||
// 按照脚本语言名称字典顺序排序.Bat(2)->Perl(3)->Powershell(5)->Python(4)->Shell(1)->SQL(6) | ||
orderFields.add(DSL.field("field({0},2,3,5,4,1,6)", TB_SCRIPT.TYPE).asc()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
特殊顺序的逻辑是否可以内聚到枚举类型中去,将来增加/修改枚举值时能够及时发现一并修改,放在这里是弱关联
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已优化
} else { | ||
orderFields.add(TB_SCRIPT.TYPE.desc()); | ||
orderFields.add(DSL.field("field({0},2,3,5,4,1,6)", TB_SCRIPT.TYPE).desc()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已优化
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2处问题需要看下
No description provided.