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
7263208e
Commit
7263208e
authored
Aug 09, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.平均救援时间格式化去掉小数,否则前端展示不完整
parent
ac07f6d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
ZLDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/ZLDPStatisticsServiceImpl.java
+5
-1
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/ZLDPStatisticsServiceImpl.java
View file @
7263208e
...
@@ -596,7 +596,7 @@ public class ZLDPStatisticsServiceImpl {
...
@@ -596,7 +596,7 @@ public class ZLDPStatisticsServiceImpl {
JSONObject
jsonObject5
=
new
JSONObject
();
JSONObject
jsonObject5
=
new
JSONObject
();
jsonObject5
.
put
(
"key"
,
"pjjysj"
);
jsonObject5
.
put
(
"key"
,
"pjjysj"
);
jsonObject5
.
put
(
"value"
,
ValidationUtil
.
isEmpty
(
statistics
.
getAvgTime
())
?
0
:
statistics
.
getAvgTime
(
));
jsonObject5
.
put
(
"value"
,
ValidationUtil
.
isEmpty
(
statistics
.
getAvgTime
())
?
0
:
this
.
roundString
(
statistics
.
getAvgTime
()
));
jsonObject5
.
put
(
"name"
,
"平均救援时间"
);
jsonObject5
.
put
(
"name"
,
"平均救援时间"
);
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
regionCode
);
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
regionCode
);
...
@@ -647,6 +647,10 @@ public class ZLDPStatisticsServiceImpl {
...
@@ -647,6 +647,10 @@ public class ZLDPStatisticsServiceImpl {
return
jsonArray
;
return
jsonArray
;
}
}
private
Long
roundString
(
String
avgTime
)
{
return
Math
.
round
(
new
Double
(
avgTime
));
}
private
Long
getQuestionNumber
(
String
problemType
,
DPFilterParamDto
params
,
String
orgCode
)
{
private
Long
getQuestionNumber
(
String
problemType
,
DPFilterParamDto
params
,
String
orgCode
)
{
return
alertStatisticsMapper
.
countProblemByTypeDateAndOrgCode
(
problemType
,
params
,
orgCode
);
return
alertStatisticsMapper
.
countProblemByTypeDateAndOrgCode
(
problemType
,
params
,
orgCode
);
}
}
...
...
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