Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
property-management
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
property-management
Commits
50333488
Commit
50333488
authored
Jun 07, 2021
by
zhangdaiscott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决issue#2639 2.4.5升级后出现后端排序报错
parent
624444e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/system/query/QueryGenerator.java
+2
-2
No files found.
jeecg-boot/jeecg-boot-base/jeecg-boot-base-core/src/main/java/org/jeecg/common/system/query/QueryGenerator.java
View file @
50333488
...
...
@@ -235,12 +235,12 @@ public class QueryGenerator {
// 将现有排序 _ 前端传递排序条件{....,column: 'column1,column2',order: 'desc'} 翻译成sql "column1,column2 desc"
// 修改为 _ 前端传递排序条件{....,column: 'column1,column2',order: 'desc'} 翻译成sql "column1 desc,column2 desc"
if
(
order
.
toUpperCase
().
indexOf
(
ORDER_TYPE_ASC
)>=
0
)
{
queryWrapper
.
orderByAsc
(
oConvertUtils
.
camelToUnderline
(
column
));
//
queryWrapper.orderByAsc(oConvertUtils.camelToUnderline(column));
String
columnStr
=
oConvertUtils
.
camelToUnderline
(
column
);
String
[]
columnArray
=
columnStr
.
split
(
","
);
queryWrapper
.
orderByAsc
(
columnArray
);
}
else
{
queryWrapper
.
orderByDesc
(
oConvertUtils
.
camelToUnderline
(
column
));
//
queryWrapper.orderByDesc(oConvertUtils.camelToUnderline(column));
String
columnStr
=
oConvertUtils
.
camelToUnderline
(
column
);
String
[]
columnArray
=
columnStr
.
split
(
","
);
queryWrapper
.
orderByDesc
(
columnArray
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment