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

排序优化 #25

Open
gx-russel opened this issue Mar 3, 2022 · 1 comment
Open

排序优化 #25

gx-russel opened this issue Mar 3, 2022 · 1 comment

Comments

@gx-russel
Copy link

我觉得可以在表格需要排序的列中加一个key字段 对应数据库字段 就不用每次都要对需要排序的字段用注解映射了
seezoon-generator/src/main/resources/template/vue/MainTable.vue.tpl
<#if columnPlan.sortable> key: "${columnPlan.dbColumnName}", sorter: true, </#if>

@734839030
Copy link
Owner

明白你的意思,这个注解的意思是限制能排序的列,而不是由前端定,如果某个字段没有索引,可能已排序db就cpu 100% 了哈,主要是简单防止有恶意的请求。

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

No branches or pull requests

2 participants