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
be6298e4
Commit
be6298e4
authored
Feb 22, 2023
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单个稳压泵指标展示修改
parent
fb4a1fae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
35 deletions
+18
-35
PressurePumpRelateEnum.java
...join/equipmanage/common/enums/PressurePumpRelateEnum.java
+3
-2
SupervisionVideoServiceImpl.java
...equipmanage/service/impl/SupervisionVideoServiceImpl.java
+6
-2
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+9
-31
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/enums/PressurePumpRelateEnum.java
View file @
be6298e4
...
...
@@ -22,8 +22,9 @@ public enum PressurePumpRelateEnum {
PRESSURE_PUMP_START_BEFORE_MINUTE
(
"-5"
,
"稳压泵启泵前分钟数"
),
PIPE_PRESSURE_NORMAL_STATUS
(
"正常"
,
"稳压泵管网压力正常状态"
),
PIPE_PRESSURE_ABNORMAL_STATUS
(
"异常"
,
"稳压泵管网压力异常状态"
),
START
(
"1"
,
"稳压泵启动"
),
STOP
(
"0"
,
"稳压泵停止"
),
START
(
"1"
,
"启动"
),
STOP
(
"0"
,
"停止"
),
RESET
(
"2"
,
"复位"
),
CREATED_TIME
(
"createdTime"
,
"物联采集信号创建时间属性"
),
UN_CLEAN_TIME
(
"false"
,
"未消除"
);
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/SupervisionVideoServiceImpl.java
View file @
be6298e4
...
...
@@ -144,8 +144,12 @@ public class SupervisionVideoServiceImpl extends ServiceImpl<SupervisionVideoMap
time
=
false
;
}
}
if
(
PressurePumpRelateEnum
.
START
.
getDesc
().
contains
(
stateMap
.
get
(
"equipment_index_name"
))
&&
PressurePumpRelateEnum
.
IOT_INDEX_VALUE_FALSE
.
getValue
().
contains
(
stateMap
.
get
(
"value"
))){
item
.
put
(
"equipment_index_name"
,
PressurePumpRelateEnum
.
STOP
.
getDesc
());
if
(
PressurePumpRelateEnum
.
IOT_INDEX_VALUE_FALSE
.
getValue
().
contains
(
stateMap
.
get
(
"value"
))){
if
(
PressurePumpRelateEnum
.
START
.
getDesc
().
contains
(
stateMap
.
get
(
"equipment_index_name"
))){
item
.
put
(
"equipment_index_name"
,
PressurePumpRelateEnum
.
STOP
.
getDesc
());
}
else
{
item
.
put
(
"equipment_index_name"
,
PressurePumpRelateEnum
.
RESET
.
getDesc
());
}
}
else
{
item
.
put
(
"equipment_index_name"
,
stateMap
.
get
(
"equipment_index_name"
));
}
...
...
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
be6298e4
...
...
@@ -2832,41 +2832,19 @@
</select>
<select
id=
"queryPressureNowSignalBySpecificId"
resultType=
"java.util.Map"
>
( SELECT
DATE_FORMAT( i.update_date, '%Y-%m-%d %H:%i:%S' ) update_date,
i.equipment_index_name,
`value`
FROM
wl_equipment_specific_index i
WHERE
i.equipment_specific_id = #{id,jdbcType=VARCHAR}
AND
VALUE = "true"
AND i.equipment_index_key NOT IN ( 'FHS_PressurePump_Start', 'FHS_PressurePump_Stop' )
ORDER BY
i.update_date DESC
LIMIT 1
) UNION
(
SELECT
DATE_FORMAT( i.update_date, '%Y-%m-%d %H:%i:%S' ) update_date,
i.equipment_index_name,
VALUE
DATE_FORMAT( i.update_date, '%Y-%m-%d %H:%i:%S' ) update_date,
i.equipment_index_name,
`value`
FROM
wl_equipment_specific_index i
wl_equipment_specific_index i
WHERE
i.equipment_specific_id = #{id,jdbcType=VARCHAR}
AND
VALUE
<![CDATA[<>]]>
''
AND
VALUE
IS NOT NULL
AND i.equipment_index_key = 'FHS_PressurePump_Start'
)
i.equipment_specific_id = #{id,jdbcType=VARCHAR}
AND
VALUE in ("true","false")
ORDER BY
update_date DESC
LIMIT 1
i.
update_date DESC
LIMIT 1
</select>
<select
id=
"getPressurePumpInfo3Small"
resultType=
"java.util.Map"
>
...
...
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