Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-dj-taskcenter
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b50dae41
authored
May 22, 2026
by
叶立庆
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
去除小写替换
1 parent
0b4d1e7f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
rpc-dj-taskcenter/src/main/java/cn/com/glsx/dj/taskcenter/service/taskcenter/TaskCenterService.java
rpc-dj-taskcenter/src/main/java/cn/com/glsx/dj/taskcenter/service/taskcenter/TaskCenterService.java
View file @
b50dae4
...
@@ -979,23 +979,22 @@ public class TaskCenterService {
...
@@ -979,23 +979,22 @@ public class TaskCenterService {
if
(
StringUtils
.
isBlank
(
orderBy
))
{
if
(
StringUtils
.
isBlank
(
orderBy
))
{
return
SORT_TYPE_CREATED_DATE_DESC
;
return
SORT_TYPE_CREATED_DATE_DESC
;
}
}
String
normalized
=
StringUtils
.
normalizeSpace
(
orderBy
).
toLowerCase
();
if
(
StringUtils
.
equalsAny
(
orderBy
,
"created_date asc"
,
"createdDate asc"
))
{
if
(
StringUtils
.
equalsAny
(
normalized
,
"created_date asc"
,
"createdDate asc"
))
{
return
SORT_TYPE_CREATED_DATE_ASC
;
return
SORT_TYPE_CREATED_DATE_ASC
;
}
}
if
(
StringUtils
.
equalsAny
(
normalized
,
"created_date desc"
,
"createdDate desc"
))
{
if
(
StringUtils
.
equalsAny
(
orderBy
,
"created_date desc"
,
"createdDate desc"
))
{
return
SORT_TYPE_CREATED_DATE_DESC
;
return
SORT_TYPE_CREATED_DATE_DESC
;
}
}
if
(
StringUtils
.
equalsAny
(
normalized
,
"updated_date asc"
,
"updatedDate asc"
))
{
if
(
StringUtils
.
equalsAny
(
orderBy
,
"updated_date asc"
,
"updatedDate asc"
))
{
return
SORT_TYPE_UPDATED_DATE_ASC
;
return
SORT_TYPE_UPDATED_DATE_ASC
;
}
}
if
(
StringUtils
.
equalsAny
(
normalized
,
"updated_date desc"
,
"updatedDate desc"
))
{
if
(
StringUtils
.
equalsAny
(
orderBy
,
"updated_date desc"
,
"updatedDate desc"
))
{
return
SORT_TYPE_UPDATED_DATE_DESC
;
return
SORT_TYPE_UPDATED_DATE_DESC
;
}
}
if
(
StringUtils
.
equalsAny
(
normalized
,
"due_time asc"
,
"dueTime asc"
))
{
if
(
StringUtils
.
equalsAny
(
orderBy
,
"due_time asc"
,
"dueTime asc"
))
{
return
SORT_TYPE_DUE_TIME_ASC
;
return
SORT_TYPE_DUE_TIME_ASC
;
}
}
if
(
StringUtils
.
equalsAny
(
normalized
,
"due_time desc"
,
"dueTime desc"
))
{
if
(
StringUtils
.
equalsAny
(
orderBy
,
"due_time desc"
,
"dueTime desc"
))
{
return
SORT_TYPE_DUE_TIME_DESC
;
return
SORT_TYPE_DUE_TIME_DESC
;
}
}
return
SORT_TYPE_CREATED_DATE_DESC
;
return
SORT_TYPE_CREATED_DATE_DESC
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment