Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes
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
ximai
mes
Commits
6dd82b9a
Commit
6dd82b9a
authored
Jan 18, 2025
by
温志超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
月、周产能报表导出
parent
700afd3b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
DailyProductionReportServiceImp.java
.../report/service/impl/DailyProductionReportServiceImp.java
+5
-1
No files found.
mes/src/main/java/com/ximai/mes/report/service/impl/DailyProductionReportServiceImp.java
View file @
6dd82b9a
...
...
@@ -189,7 +189,11 @@ public class DailyProductionReportServiceImp implements DailyProductionReportSer
dateHashMap
.
put
(
key
+
"统计不合格数量"
,
(
Double
)
dateHashMap
.
get
(
key
+
"统计不合格数量"
)
+
(
Double
)
data
.
get
(
key
+
"统计不合格数量"
));
dateHashMap
.
put
(
key
+
"统计报工数量"
,
(
Double
)
dateHashMap
.
get
(
key
+
"统计报工数量"
)
+
(
Double
)
data
.
get
(
key
+
"统计报工数量"
));
}
dateHashMap
.
put
(
key
+
"统计合格率"
,(
new
BigDecimal
((
Double
)
dateHashMap
.
get
(
key
+
"统计合格数量"
)).
multiply
(
new
BigDecimal
(
100
))).
divide
(
new
BigDecimal
((
Double
)
dateHashMap
.
get
(
key
+
"统计报工数量"
)),
2
,
RoundingMode
.
HALF_UP
));
if
(((
Double
)
dateHashMap
.
get
(
key
+
"统计报工数量"
))
>
0
){
dateHashMap
.
put
(
key
+
"统计合格率"
,(
new
BigDecimal
((
Double
)
dateHashMap
.
get
(
key
+
"统计合格数量"
)).
multiply
(
new
BigDecimal
(
100
))).
divide
(
new
BigDecimal
((
Double
)
dateHashMap
.
get
(
key
+
"统计报工数量"
)),
2
,
RoundingMode
.
HALF_UP
));
}
else
{
dateHashMap
.
put
(
key
+
"统计合格率"
,
BigDecimal
.
ZERO
);
}
returnList
.
add
(
dateHashMap
);
for
(
String
date
:
dateList
){
HashMap
dateStatisticsHashMap
=
new
HashMap
();
...
...
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