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
d535effe
Commit
d535effe
authored
Dec 21, 2022
by
lisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
54f8c2e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
7 deletions
+29
-7
EmergencyMapper.xml
...ystem-equip/src/main/resources/mapper/EmergencyMapper.xml
+29
-7
No files found.
amos-boot-system-equip/src/main/resources/mapper/EmergencyMapper.xml
View file @
d535effe
...
@@ -147,7 +147,9 @@
...
@@ -147,7 +147,9 @@
concat( wesi.equipment_index_name, '(是)' )
concat( wesi.equipment_index_name, '(是)' )
WHEN 'false' THEN
WHEN 'false' THEN
concat( wesi.equipment_index_name, '(否)' )
concat( wesi.equipment_index_name, '(否)' )
END) ELSE wesi.value_label END FROM wl_equipment_specific_index wesi WHERE wesi.equipment_specific_id = temp.id AND wesi.is_alarm = 1
END) ELSE wesi.value_label END FROM wl_equipment_specific_index wesi
LEFT JOIN wl_equipment_index wei on wesi.equipment_index_id = wei.id
WHERE wesi.equipment_specific_id = temp.id AND wei.is_trend = 0
ORDER BY wesi.update_date desc LIMIT 1),'--') AS status,
ORDER BY wesi.update_date desc LIMIT 1),'--') AS status,
'--' AS flow
'--' AS flow
FROM(
FROM(
...
@@ -174,9 +176,13 @@
...
@@ -174,9 +176,13 @@
CASE
CASE
WHEN ( temp.nowLevel = '--' ) THEN
WHEN ( temp.nowLevel = '--' ) THEN
'--'
'--'
WHEN ( temp.nowLevel
<
temp.minLevel ) THEN
WHEN ( temp.maxLevel = 0 ) THEN
'--'
WHEN ( temp.minLevel = 0 ) THEN
'--'
WHEN ( temp.minLevel - temp.nowLevel > 0 ) THEN
'液位低'
'液位低'
WHEN ( temp.nowLevel
> temp.maxLevel
) THEN
WHEN ( temp.nowLevel
- temp.maxLevel > 0
) THEN
'液位高' ELSE '正常'
'液位高' ELSE '正常'
END AS status,
END AS status,
CASE
CASE
...
@@ -324,9 +330,17 @@
...
@@ -324,9 +330,17 @@
CASE
CASE
WHEN temp.nowPressure = '--' THEN
WHEN temp.nowPressure = '--' THEN
'--'
'--'
WHEN temp.nowPressure > temp.maxPressure THEN
WHEN temp.maxPressure = '' THEN
'--'
WHEN temp.minPressure = '' THEN
'--'
WHEN ( temp.maxLevel = 0 ) THEN
'--'
WHEN ( temp.minLevel = 0 ) THEN
'--'
WHEN temp.nowPressure - temp.maxPressure > 0 THEN
'压力高'
'压力高'
WHEN temp.
nowPressure
<
temp.minPressure
THEN
WHEN temp.
minPressure - temp.nowPressure > 0
THEN
'压力低' ELSE '正常'
'压力低' ELSE '正常'
END AS status,
END AS status,
1 AS type
1 AS type
...
@@ -357,9 +371,17 @@
...
@@ -357,9 +371,17 @@
CASE
CASE
WHEN temp.nowFlow = '--' THEN
WHEN temp.nowFlow = '--' THEN
'--'
'--'
WHEN temp.nowFlow > temp.maxFlow THEN
WHEN temp.maxFlow = '' THEN
'--'
WHEN temp.minFlow = '' THEN
'--'
WHEN ( temp.maxLevel = 0 ) THEN
'--'
WHEN ( temp.minLevel = 0 ) THEN
'--'
WHEN temp.nowFlow - temp.maxFlow > 0 THEN
'流量高'
'流量高'
WHEN temp.
nowFlow
<
temp.minFlow
THEN
WHEN temp.
minFlow - temp.nowFlow > 0
THEN
'流量低' ELSE '正常'
'流量低' ELSE '正常'
END AS status,
END AS status,
2 AS type
2 AS type
...
...
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