Commit 1183dd0a3281ad59374259cbf860fa86f7686a0d
1 parent
a87c8734
2.4.5升级后出现后端排序报错 #2639
Showing
1 changed file
with
2 additions
and
2 deletions
jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/system/query/QueryGenerator.java
... | ... | @@ -235,12 +235,12 @@ public class QueryGenerator { |
235 | 235 | // 将现有排序 _ 前端传递排序条件{....,column: 'column1,column2',order: 'desc'} 翻译成sql "column1,column2 desc" |
236 | 236 | // 修改为 _ 前端传递排序条件{....,column: 'column1,column2',order: 'desc'} 翻译成sql "column1 desc,column2 desc" |
237 | 237 | if (order.toUpperCase().indexOf(ORDER_TYPE_ASC)>=0) { |
238 | - queryWrapper.orderByAsc(oConvertUtils.camelToUnderline(column)); | |
238 | + //queryWrapper.orderByAsc(oConvertUtils.camelToUnderline(column)); | |
239 | 239 | String columnStr = oConvertUtils.camelToUnderline(column); |
240 | 240 | String[] columnArray = columnStr.split(","); |
241 | 241 | queryWrapper.orderByAsc(columnArray); |
242 | 242 | } else { |
243 | - queryWrapper.orderByDesc(oConvertUtils.camelToUnderline(column)); | |
243 | + //queryWrapper.orderByDesc(oConvertUtils.camelToUnderline(column)); | |
244 | 244 | String columnStr = oConvertUtils.camelToUnderline(column); |
245 | 245 | String[] columnArray = columnStr.split(","); |
246 | 246 | queryWrapper.orderByDesc(columnArray); |
... | ... |