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
5fc2edf6
Commit
5fc2edf6
authored
Nov 06, 2023
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
e4659da7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
AlertStatisticsServiceImpl.java
...elevator/biz/service/impl/AlertStatisticsServiceImpl.java
+2
-0
No files found.
amos-boot-system-tzs/amos-boot-module-96333/amos-boot-module-96333-biz/src/main/java/com/yeejoin/amos/boot/module/elevator/biz/service/impl/AlertStatisticsServiceImpl.java
View file @
5fc2edf6
...
@@ -102,6 +102,7 @@ public class AlertStatisticsServiceImpl extends BaseService<AlertStatisticsDto,
...
@@ -102,6 +102,7 @@ public class AlertStatisticsServiceImpl extends BaseService<AlertStatisticsDto,
}
}
statistics
.
setSupervisoryUnitName
(
"合计"
);
statistics
.
setSupervisoryUnitName
(
"合计"
);
statistics
.
setSequenceNbr
(
0L
);
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"0.000"
);
DecimalFormat
decimalFormat
=
new
DecimalFormat
(
"0.000"
);
DecimalFormat
decimalFormatAvg
=
new
DecimalFormat
(
"0.0"
);
DecimalFormat
decimalFormatAvg
=
new
DecimalFormat
(
"0.0"
);
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
SimpleDateFormat
simpleDateFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
);
...
@@ -117,6 +118,7 @@ public class AlertStatisticsServiceImpl extends BaseService<AlertStatisticsDto,
...
@@ -117,6 +118,7 @@ public class AlertStatisticsServiceImpl extends BaseService<AlertStatisticsDto,
alertStatistics
.
add
(
statistics
);
alertStatistics
.
add
(
statistics
);
AlertStatistics
avg
=
new
AlertStatistics
();
AlertStatistics
avg
=
new
AlertStatistics
();
avg
.
setSupervisoryUnitName
(
"平均每天"
);
avg
.
setSupervisoryUnitName
(
"平均每天"
);
avg
.
setSequenceNbr
(
1L
);
long
days
=
DateUtil
.
betweenDay
(
simpleDateFormat
.
parse
(
startDate
),
simpleDateFormat
.
parse
(
endDate
),
true
);
long
days
=
DateUtil
.
betweenDay
(
simpleDateFormat
.
parse
(
startDate
),
simpleDateFormat
.
parse
(
endDate
),
true
);
int
avgNum
=
Integer
.
parseInt
(
String
.
valueOf
(
days
));
int
avgNum
=
Integer
.
parseInt
(
String
.
valueOf
(
days
));
if
(!
ObjectUtils
.
isEmpty
(
statistics
.
getEmergencyEvents
())
&&
statistics
.
getEmergencyEvents
()
!=
0
&&
avgNum
!=
0
)
{
if
(!
ObjectUtils
.
isEmpty
(
statistics
.
getEmergencyEvents
())
&&
statistics
.
getEmergencyEvents
()
!=
0
&&
avgNum
!=
0
)
{
...
...
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