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
0ad293a0
Commit
0ad293a0
authored
Feb 03, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务 14551
parent
67f191d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
EquipmentSpecificAlarmServiceImpl.java
...anage/service/impl/EquipmentSpecificAlarmServiceImpl.java
+11
-5
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificAlarmServiceImpl.java
View file @
0ad293a0
...
...
@@ -814,11 +814,17 @@ public class EquipmentSpecificAlarmServiceImpl extends ServiceImpl<EquipmentSpec
}
else
{
retMap
.
put
(
"status"
,
"正常"
);
}
retMap
.
put
(
"name"
,
stringObjectMap
.
get
(
"name"
).
toString
());
String
frequency
=
"稳压泵总数"
+
stringObjectMap
.
get
(
"allEqu"
).
toString
()+
"台,平均近半小时启动"
+
startNum
/
hafHour
+
"次,"
+
"平均2小时启动"
+
startNum
/
twoHour
+
"次,"
+
"平均4小时启动"
+
startNum
/
fourHour
+
"次"
;
retMap
.
put
(
"frequency"
,
frequency
);
if
(
startNum
!=
0
)
{
retMap
.
put
(
"name"
,
stringObjectMap
.
get
(
"name"
).
toString
());
String
frequency
=
"稳压泵总数"
+
stringObjectMap
.
get
(
"allEqu"
).
toString
()+
"台,平均近半小时启动"
+(
startNum
/
hafHour
<
1
?
1
:
startNum
/
hafHour
)+
"次,"
+
"平均2小时启动"
+(
startNum
/
twoHour
<
1
?
1
:
startNum
/
twoHour
)+
"次,"
+
"平均4小时启动"
+(
startNum
/
fourHour
<
1
?
1
:
startNum
/
fourHour
)+
"次"
;
retMap
.
put
(
"frequency"
,
frequency
);
}
else
{
retMap
.
put
(
"name"
,
stringObjectMap
.
get
(
"name"
).
toString
());
String
frequency
=
"稳压泵总数"
+
stringObjectMap
.
get
(
"allEqu"
).
toString
()+
"台,平均近半小时启动0次,"
+
"平均2小时启动0次,"
+
"平均4小时启动0次"
;
retMap
.
put
(
"frequency"
,
frequency
);
}
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
}
...
...
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