Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
8203d4f0
Commit
8203d4f0
authored
Jul 31, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.气瓶大屏统计未换成小数自测bug
parent
77ac5fe0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
AQZSDPStatisticsServiceImpl.java
...atistcs/biz/service/impl/AQZSDPStatisticsServiceImpl.java
+13
-7
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/service/impl/AQZSDPStatisticsServiceImpl.java
View file @
8203d4f0
...
...
@@ -117,7 +117,7 @@ public class AQZSDPStatisticsServiceImpl {
}
BigDecimal
bigTotalUnitNumber
=
new
BigDecimal
(
String
.
valueOf
(
totalUnitNumber
));
BigDecimal
bigOkUnitNumberNumber
=
new
BigDecimal
(
String
.
valueOf
(
okUnitNumberNumber
));
BigDecimal
result
=
bigOkUnitNumberNumber
.
divide
(
bigTotalUnitNumber
,
4
,
RoundingMode
.
HALF_UP
).
multiply
(
new
BigDecimal
(
"100"
)).
setScale
(
2
);
BigDecimal
result
=
bigOkUnitNumberNumber
.
divide
(
bigTotalUnitNumber
,
4
,
RoundingMode
.
HALF_UP
).
multiply
(
new
BigDecimal
(
"100"
)).
setScale
(
2
,
RoundingMode
.
HALF_UP
);
return
result
.
toPlainString
();
}
...
...
@@ -175,12 +175,12 @@ public class AQZSDPStatisticsServiceImpl {
List
<
String
>
xdata
=
stCommonService
.
buildXData
(
regionModels
);
regionModels
.
forEach
(
r
->
{
SecurityIndexCountItemDto
countItemDto
=
regionCodeSecurityIndexMap
.
get
(
r
.
getRegionCode
().
toString
());
xuke
.
add
(
countItemDto
.
getXuke
(
));
shiyongdengji
.
add
(
countItemDto
.
getShiyongdengji
(
));
jianyanchaoqi
.
add
(
countItemDto
.
getJianyanchaoqi
(
));
jianyanhege
.
add
(
countItemDto
.
getJianyanhege
(
));
czjc
.
add
(
countItemDto
.
getCzjc
(
));
czjchege
.
add
(
countItemDto
.
getCzjchege
(
));
xuke
.
add
(
this
.
castScore2Percent
(
countItemDto
.
getXuke
()
));
shiyongdengji
.
add
(
this
.
castScore2Percent
(
countItemDto
.
getShiyongdengji
()
));
jianyanchaoqi
.
add
(
this
.
castScore2Percent
(
countItemDto
.
getJianyanchaoqi
()
));
jianyanhege
.
add
(
this
.
castScore2Percent
(
countItemDto
.
getJianyanhege
()
));
czjc
.
add
(
this
.
castScore2Percent
(
countItemDto
.
getCzjc
()
));
czjchege
.
add
(
this
.
castScore2Percent
(
countItemDto
.
getCzjchege
()
));
});
Map
<
String
,
Object
>
result
=
new
HashMap
<>();
result
.
put
(
"xdata"
,
xdata
);
...
...
@@ -194,6 +194,12 @@ public class AQZSDPStatisticsServiceImpl {
return
result
;
}
private
String
castScore2Percent
(
String
score
)
{
BigDecimal
big
=
new
BigDecimal
(
score
);
BigDecimal
percent
=
big
.
divide
(
new
BigDecimal
(
"100"
),
2
,
RoundingMode
.
HALF_UP
);
return
percent
.
toPlainString
();
}
private
Set
<
String
>
getLegendForCyArea
()
{
Set
<
String
>
legendData
=
new
HashSet
<>();
legendData
.
add
(
"许可有效率"
);
...
...
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