Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8cc6be3f
authored
Nov 16, 2023
by
刘鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(ID1003828): 博西PEA_V1.0-工作日历:工程师需要按照姓名拼音首字母降序排序
1 parent
d8a327ca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerCalendarServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/EngineerCalendarServiceImpl.java
View file @
8cc6be3
...
...
@@ -59,6 +59,7 @@ import java.util.ArrayList;
import
java.util.Arrays
;
import
java.util.Collection
;
import
java.util.Collections
;
import
java.util.Comparator
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -117,6 +118,8 @@ public class EngineerCalendarServiceImpl implements EngineerCalendarService {
rs
.
setPages
(
page
.
getTotalPages
());
rs
.
setPageSize
(
page
.
getSize
());
rs
.
setPageCurrent
(
page
.
getNumber
()
+
1
);
engineers
=
engineers
.
stream
().
sorted
(
Comparator
.
comparing
(
EngineerCalendarDTO
.
Engineer
::
getName
).
reversed
()).
collect
(
Collectors
.
toList
());
rs
.
setEngineers
(
engineers
);
return
Result
.
success
(
rs
);
}
...
...
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