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
b8028932
Commit
b8028932
authored
Aug 16, 2023
by
廖旭伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
汇总bug修改
parent
2782a57e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/web/CheckAllRecordController.java
...ortals/xhx/module/check/web/CheckAllRecordController.java
+7
-4
No files found.
attendance-performance-manager/src/main/java/com/mortals/xhx/module/check/web/CheckAllRecordController.java
View file @
b8028932
...
...
@@ -139,14 +139,17 @@ public class CheckAllRecordController extends BaseJsonBodyController {
NumberFormat
numberFormat
=
NumberFormat
.
getPercentInstance
();
numberFormat
.
setMaximumFractionDigits
(
2
);
if
(
current
!=
null
)
{
BigDecimal
zero
=
new
BigDecimal
(
0
);
model
.
put
(
"initScore"
,
current
.
getInitScore
());
model
.
put
(
"checkScore"
,
current
.
getCheckScore
());
model
.
put
(
"appealScore"
,
current
.
getAppealScore
());
model
.
put
(
"total"
,
current
.
getTotal
());
BigDecimal
checkPercent
=
current
.
getCheckScore
().
divide
(
current
.
getInitScore
(),
6
,
BigDecimal
.
ROUND_HALF_UP
);
model
.
put
(
"checkPercent"
,
numberFormat
.
format
(
checkPercent
));
BigDecimal
appealPercent
=
current
.
getAppealScore
().
divide
(
current
.
getInitScore
(),
6
,
BigDecimal
.
ROUND_HALF_UP
);
model
.
put
(
"appealPercent"
,
numberFormat
.
format
(
appealPercent
));
if
(
current
.
getInitScore
().
compareTo
(
zero
)>
0
)
{
BigDecimal
checkPercent
=
current
.
getCheckScore
().
divide
(
current
.
getInitScore
(),
6
,
BigDecimal
.
ROUND_HALF_UP
);
model
.
put
(
"checkPercent"
,
numberFormat
.
format
(
checkPercent
));
BigDecimal
appealPercent
=
current
.
getAppealScore
().
divide
(
current
.
getInitScore
(),
6
,
BigDecimal
.
ROUND_HALF_UP
);
model
.
put
(
"appealPercent"
,
numberFormat
.
format
(
appealPercent
));
}
CheckAllScoreSummaryVo
last
=
checkAllRecordService
.
getScoreSummary
(
lastQuery
);
if
(
last
!=
null
)
{
...
...
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