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

This commit is contained in:
疯狂的狮子Li
2024-12-09 13:34:53 +08:00
parent 4ce2fb53a8
commit 7d89a81853

View File

@@ -95,6 +95,10 @@ 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
#end
return lqw;
}