Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bladex-schedule
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglianxi
bladex-schedule
Commits
f30097ff
Commit
f30097ff
authored
Jun 04, 2020
by
wanglianxi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2020年6月4日09:42:49
parent
bdc9eb4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ScheduleServiceImpl.java
...g/springblade/agent/service/impl/ScheduleServiceImpl.java
+1
-1
No files found.
blade-sched/src/main/java/org/springblade/agent/service/impl/ScheduleServiceImpl.java
View file @
f30097ff
...
...
@@ -180,7 +180,7 @@ public class ScheduleServiceImpl extends ServiceImpl<ScheduleMapper, Schedule> i
Set
<
String
>
nurseIdSet
=
schedules
.
stream
().
map
(
Schedule:
:
getNurseId
).
collect
(
Collectors
.
toSet
());
List
<
HourStatisticsVO
>
hourStatisticsVOList
=
AboutScheduleConverter
.
calcAttendanceOfHours
(
schedules
,
nurseIdSet
);
Page
<
HourStatisticsVO
>
iPage
=
new
Page
<>(
query
.
getCurrent
(),
query
.
getSize
());
List
<
HourStatisticsVO
>
result
=
hourStatisticsVOList
.
stream
().
skip
(
query
.
getSize
()
*
query
.
getCurrent
(
)).
limit
(
query
.
getSize
()).
collect
(
Collectors
.
toList
());
List
<
HourStatisticsVO
>
result
=
hourStatisticsVOList
.
stream
().
skip
(
query
.
getSize
()
*
(
query
.
getCurrent
()
-
1
)).
limit
(
query
.
getSize
()).
collect
(
Collectors
.
toList
());
iPage
.
setRecords
(
result
);
return
R
.
data
(
iPage
);
}
catch
(
CommonException
e
)
{
...
...
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