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 d6c9225a
authored
Jun 15, 2023
by
丁伟峰
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-dingwf-mvp616' into develop
2 parents
a437880c
a53e0f8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/CapacityQueryServiceImpl.java
project-order/src/main/java/com/alibaba/cloud/integration/order/service/impl/CapacityQueryServiceImpl.java
View file @
d6c9225
...
...
@@ -184,7 +184,6 @@ public class CapacityQueryServiceImpl implements CapacityQueryService {
timeDTO
.
setText
((
String
)
timeSpans
[
0
]);
timeDTO
.
setBegin
((
String
)
timeSpans
[
1
]);
timeDTO
.
setEnd
((
String
)
timeSpans
[
2
]);
List
<
CapacityOrderQueryRespDTO
.
TimeDTO
>
times
=
null
;
CapacityOrderQueryRespDTO
.
CalendarDTO
calendarDTO
=
null
;
if
(
dayMaps
.
containsKey
(
e
.
getWorkday
()))
{
calendarDTO
=
dayMaps
.
get
(
e
.
getWorkday
());
...
...
@@ -196,7 +195,8 @@ public class CapacityQueryServiceImpl implements CapacityQueryService {
calendarDTO
.
getTimes
().
add
(
timeDTO
);
dayMaps
.
put
(
e
.
getWorkday
(),
calendarDTO
);
}
return
new
ArrayList
<>(
dayMaps
.
values
());
return
new
ArrayList
<>(
dayMaps
.
values
()).
stream
()
.
sorted
(
Comparator
.
comparing
(
CapacityOrderQueryRespDTO
.
CalendarDTO
::
getDate
)).
collect
(
Collectors
.
toList
());
}
private
String
getWeekday
(
String
day
)
{
...
...
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