|
@@ -61,7 +61,7 @@ public class ${className}ServiceImpl extends ServiceImpl<${className}Mapper, ${c
|
|
|
<% } %>
|
|
|
if(ObjectUtil.isAllNotEmpty(${classNameFirstLower}PageParam.getSortField(), ${classNameFirstLower}PageParam.getSortOrder())) {
|
|
|
CommonSortOrderEnum.validate(${classNameFirstLower}PageParam.getSortOrder());
|
|
|
- queryWrapper.orderBy(true, ${classNameFirstLower}PageParam.getSortOrder().equals(CommonSortOrderEnum.ASC.getValue()),
|
|
|
+ queryWrapper.orderBy(true, ${classNameFirstLower}PageParam.getSortOrder().equalsIgnoreCase(CommonSortOrderEnum.ASC.getValue()),
|
|
|
StrUtil.toUnderlineCase(${classNameFirstLower}PageParam.getSortField()));
|
|
|
} else {
|
|
|
<% if(hasSortCodeField) { %>
|