update 优化 代码生成 增加buildQueryWrapper默认排序规则

This commit is contained in:
疯狂的狮子Li 2024-12-09 13:31:17 +08:00
parent 2bb787886d
commit 5e6cb0dd3c

View File

@ -95,6 +95,7 @@ public class ${ClassName}ServiceImpl implements I${ClassName}Service {
${ClassName}::get$AttrName ,params.get("begin$AttrName"), params.get("end$AttrName"));
#end
#end
#set($AttrName=$column.javaField.substring(0,1).toUpperCase() + ${column.javaField.substring(1)})
#if($column.isPk==1)
lqw.orderByAsc(${ClassName}::get$AttrName);
#end