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
f51c7dbe
Commit
f51c7dbe
authored
Aug 22, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3小bug修改
parent
1e0ef654
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+17
-9
No files found.
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
f51c7dbe
...
...
@@ -2292,14 +2292,16 @@
</select>
<select
id=
"getFireCarInfoByWL"
resultType=
"java.util.Map"
>
select a.* from
(SELECT
SELECT
a.*
FROM
(
SELECT
`wc`.`id` AS `id`,
`wc`.`name` AS `name`,
max( CASE WHEN ( `wcp`.`equipment_index_key` = 'FireCar_WaterCapacity' ) THEN `wcp`.`value` END ) AS
`waterCapacity`,
max( CASE WHEN ( `wcp`.`equipment_index_key` = 'FireCar_FoamCapacity' ) THEN `wcp`.`value` END ) AS
`foamCapacity`,
IFNULL( max( CASE WHEN ( `wcp`.`equipment_index_key` = 'FireCar_WaterCapacity' ) THEN `wcp`.`value` END ), 0 ) AS `waterCapacity`,
IFNULL( max( CASE WHEN ( `wcp`.`equipment_index_key` = 'FireCar_FoamCapacity' ) THEN `wcp`.`value` END ), 0 ) AS `foamCapacity`,
IFNULL(
max(
CASE
...
...
@@ -2308,7 +2310,10 @@
WHEN ( `wcp`.`equipment_index_key` = 'FireCar_Start' AND `wcp`.`value` = 'false' ) THEN
'熄火'
END
),
'未知'
) AS `carState`,
IFNULL(
max(
CASE
...
...
@@ -2317,6 +2322,8 @@
WHEN ( `wcp`.`equipment_index_key` = 'FireCar_Start' AND `wcp`.`value` = 'false' ) THEN
`wcp`.`update_date`
END
),
''
) AS `carStateDate`
FROM
`wl_car` `wc`
...
...
@@ -2327,7 +2334,8 @@
AND wc.biz_org_code like concat(#{bizOrgCode}, '%')
</if>
</where>
group by `wc`.`id`
GROUP BY
`wc`.`id`
) a
</select>
...
...
@@ -2338,7 +2346,7 @@
IFNULL( rp.min_water_level, 0 ) AS minLevel,
IFNULL( rp.max_water_level, 0 ) AS maxLevel,
IFNULL((
abs(
TRUNCATE (
abs(
IFNULL(
max( CASE WHEN ei.name_key = 'FHS_WirelessliquidDetector_WaterLevel' THEN ei.perf_value END ),
IFNULL( rp.min_water_level, 0 )) /
...
...
@@ -2346,7 +2354,7 @@
(
IFNULL( rp.max_water_level, 0 ) = 0,
1,
IFNULL( rp.max_water_level, 0 ))) * 100
IFNULL( rp.max_water_level, 0 ))) * 100
, 2)
),
0
) AS levelAbs,
...
...
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