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
eabef769
Commit
eabef769
authored
Aug 23, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改本月统计
parent
63ee5b91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
attendance-performance-manager/src/main/java/com/mortals/xhx/base/login/web/LoginController.java
.../java/com/mortals/xhx/base/login/web/LoginController.java
+3
-2
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/base/login/web/LoginController.java
View file @
eabef769
...
...
@@ -260,7 +260,7 @@ public class LoginController extends BaseCRUDJsonBodyMappingController<UserServi
//总打卡记录
long
totalAttend
=
attendanceRecordEntities
.
parallelStream
().
flatMap
(
item
->
item
.
getAttendanceRecordDetailList
().
s
tream
()).
count
();
long
totalAttend
=
attendanceRecordEntities
.
parallelStream
().
flatMap
(
item
->
item
.
getAttendanceRecordDetailList
().
parallelS
tream
()).
count
();
long
lackOfCardsAttend
=
attendanceRecordEntities
.
parallelStream
()
.
flatMap
(
item
->
item
.
getAttendanceRecordDetailList
().
stream
())
...
...
@@ -269,7 +269,8 @@ public class LoginController extends BaseCRUDJsonBodyMappingController<UserServi
//异常考勤记录
//未考勤
// long noAtt=lackOfCards;
long
att
=
totalAttend
-
lackOfCardsAttend
-
levealPersonNum
;
// long att = totalAttend - lackOfCardsAttend - levealPersonNum;
long
att
=
totalAttend
-
lackOfCardsAttend
;
if
(
att
!=
0L
)
{
BigDecimal
bigDecimal
=
new
BigDecimal
(
att
).
divide
(
new
BigDecimal
(
totalAttend
),
4
,
BigDecimal
.
ROUND_CEILING
).
multiply
(
new
BigDecimal
(
100
)).
setScale
(
2
,
BigDecimal
.
ROUND_CEILING
);
homeStatInfo
.
setAttendRadio
(
bigDecimal
.
toString
()
+
"%"
);
...
...
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