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
86830f71
Commit
86830f71
authored
Aug 13, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.大屏-应急-维保单位平均救援时间排名 调整
parent
6cc81681
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
YJDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/YJDPStatisticsServiceImpl.java
+9
-8
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/YJDPStatisticsServiceImpl.java
View file @
86830f71
...
...
@@ -256,18 +256,19 @@ public class YJDPStatisticsServiceImpl {
Long
seconds
=
Long
.
valueOf
(
x
.
get
(
"avgTime"
).
toString
());
long
days
=
TimeUnit
.
SECONDS
.
toDays
(
seconds
);
long
hours
=
TimeUnit
.
SECONDS
.
toHours
(
seconds
)
-
TimeUnit
.
DAYS
.
toHours
(
days
);
long
minutes
=
TimeUnit
.
SECONDS
.
toMinutes
(
seconds
)
-
TimeUnit
.
HOURS
.
toMinutes
(
hours
);
if
(!
ValidationUtil
.
isEmpty
(
days
)
&&
days
>
0
)
{
long
minutes
=
TimeUnit
.
SECONDS
.
toMinutes
(
seconds
)
-
TimeUnit
.
HOURS
.
toMinutes
(
hours
)
-
TimeUnit
.
SECONDS
.
toMinutes
(
days
);
long
sec
=
seconds
-
(
TimeUnit
.
DAYS
.
toSeconds
(
days
)
+
TimeUnit
.
HOURS
.
toSeconds
(
hours
)
+
TimeUnit
.
MINUTES
.
toSeconds
(
minutes
));
if
(
days
>
0
)
{
avgTime
=
avgTime
+
days
+
"天"
;
}
if
(
!
ValidationUtil
.
isEmpty
(
hours
)
&&
hours
>
0
)
{
if
(
hours
>
0
)
{
avgTime
=
avgTime
+
hours
+
"小时"
;
}
if
(
!
ValidationUtil
.
isEmpty
(
minutes
)
&&
minutes
>
0
)
{
if
(
minutes
>
0
)
{
avgTime
=
avgTime
+
minutes
+
"分钟"
;
}
if
(
sec
onds
<
6
0
)
{
avgTime
=
avgTime
+
sec
onds
+
"秒"
;
if
(
sec
>
0
)
{
avgTime
=
avgTime
+
sec
+
"秒"
;
}
x
.
put
(
"avgTime"
,
avgTime
);
});
...
...
@@ -276,8 +277,8 @@ public class YJDPStatisticsServiceImpl {
public
JSONObject
regionEventRank
(
DPFilterParamDto
dpFilterParamDto
)
{
JSONObject
jsonObject
=
new
JSONObject
();
String
orgCode
R
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
if
(
orgCode
R
==
null
)
{
String
orgCode
Parent
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
if
(
orgCode
Parent
==
null
)
{
return
jsonObject
;
}
List
<
RegionModel
>
childRegion
=
stCommonService
.
setRegionIfRootParentAndNoAccessIf3Level
(
dpFilterParamDto
);
...
...
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