Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
attendance-performance-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
attendance-performance-platform
Commits
e27628df
Commit
e27628df
authored
Mar 13, 2024
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
考勤汇总导出时员工当天有多条请假记录导致导出记录假期描述不准确bug修改
parent
c9e6c13a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/web/AttendanceStatController.java
...s/xhx/module/attendance/web/AttendanceStatController.java
+10
-1
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/attendance/web/AttendanceStatController.java
View file @
e27628df
...
@@ -219,7 +219,16 @@ public class AttendanceStatController extends BaseCRUDJsonBodyMappingController<
...
@@ -219,7 +219,16 @@ public class AttendanceStatController extends BaseCRUDJsonBodyMappingController<
List
<
AttendanceStaffStatEntity
>
attendanceStaffStatEntities
=
item
.
getAttendanceStaffStatEntities
();
List
<
AttendanceStaffStatEntity
>
attendanceStaffStatEntities
=
item
.
getAttendanceStaffStatEntities
();
Map
<
Integer
,
String
>
collect
=
new
HashMap
<>();
Map
<
Integer
,
String
>
collect
=
new
HashMap
<>();
if
(!
ObjectUtils
.
isEmpty
(
attendanceStaffStatEntities
))
{
if
(!
ObjectUtils
.
isEmpty
(
attendanceStaffStatEntities
))
{
collect
=
attendanceStaffStatEntities
.
stream
().
collect
(
Collectors
.
toMap
(
x
->
x
.
getYear
()
+
x
.
getMonth
()
+
x
.
getDay
(),
y
->
y
.
getAttendanceSummary
(),(
o
,
n
)->
n
));
for
(
AttendanceStaffStatEntity
staffStat:
attendanceStaffStatEntities
){
Integer
key
=
staffStat
.
getYear
()
+
staffStat
.
getMonth
()
+
staffStat
.
getDay
();
if
(
collect
.
containsKey
(
key
)){
String
value
=
collect
.
get
(
key
)+
";"
+
staffStat
.
getAttendanceSummary
();
collect
.
put
(
key
,
value
);
}
else
{
collect
.
put
(
key
,
staffStat
.
getAttendanceSummary
());
}
}
//collect = attendanceStaffStatEntities.stream().collect(Collectors.toMap(x -> x.getYear() + x.getMonth() + x.getDay(), y -> y.getAttendanceSummary(),(o,n)->n));
}
}
List
<
Map
<
String
,
Object
>>
mapList
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
mapList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<=
subDay
.
intValue
();
i
++)
{
for
(
int
i
=
0
;
i
<=
subDay
.
intValue
();
i
++)
{
...
...
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