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
219b997b
Commit
219b997b
authored
Feb 15, 2022
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.视图修改 连接为空bug
parent
1ab64856
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
18 deletions
+24
-18
view_all.sql
...stem-equip/src/main/resources/changelog/init/view_all.sql
+23
-17
AnalysisReportMonthMapper.xml
...p/src/main/resources/mapper/AnalysisReportMonthMapper.xml
+1
-1
No files found.
amos-boot-system-equip/src/main/resources/changelog/init/view_all.sql
View file @
219b997b
...
...
@@ -4757,10 +4757,11 @@ FROM
(
(
SELECT
`a`
.
`value`
AS
`yhxfscyw`
,
ifnull
(
sum
(
`a`
.
`value`
),
0
)
AS
`yhxfscyw`
,
ifnull
(
(
CASE
WHEN
(
`a`
.
`value`
IS
NULL
)
THEN
WHEN
(
`a`
.
`value`
=
NULL
)
THEN
0
WHEN
(
(
`a`
.
`value`
<>
''
)
...
...
@@ -4772,12 +4773,14 @@ FROM
),
2
)
WHEN
(
`b`
.
`height`
IS
NULL
)
THEN
WHEN
(
`b`
.
`height`
=
NULL
)
THEN
0
END
),
0
)
AS
`yhxfscyl`
,
`b`
.
`waterStorage`
AS
`yhxfsccs`
,
`b`
.
`height`
AS
`yhxfscg`
ifnull
(
`b`
.
`waterStorage`
,
0
)
AS
`yhxfsccs`
,
ifnull
(
`b`
.
`height`
,
0
)
AS
`yhxfscg`
FROM
(
(
...
...
@@ -4794,7 +4797,7 @@ FROM
`si`
.
`equipment_index_key`
=
'FHS_FirePoolDevice_WaterLevel'
)
AND
(
`s`
.
`code`
=
'1HXFSCCJZZ100000'
--1号消防水池装置code
`s`
.
`code`
=
'1HXFSCCJZZ100000'
)
AND
(
`si`
.
`equipment_specific_id`
=
`s`
.
`id`
...
...
@@ -4841,7 +4844,7 @@ FROM
(
(
`i`
.
`field_name`
=
'code'
)
AND
(
`i`
.
`field_value`
=
'SC10
5035'
--1号消防水池(建筑或者房间类型)code
`i`
.
`field_value`
=
'SC10
6268'
)
)
LIMIT
1
...
...
@@ -4851,12 +4854,13 @@ FROM
)
`b`
)
)
`yh`
JOIN
(
LEFT
JOIN
(
SELECT
`a`
.
`value`
AS
`ehxfscyw`
,
ifnull
(
sum
(
`a`
.
`value`
),
0
)
AS
`ehxfscyw`
,
ifnull
(
(
CASE
WHEN
(
`a`
.
`value`
IS
NULL
)
THEN
WHEN
(
`a`
.
`value`
=
NULL
)
THEN
0
WHEN
(
(
`a`
.
`value`
<>
''
)
...
...
@@ -4868,12 +4872,14 @@ FROM
),
2
)
WHEN
(
`b`
.
`height`
IS
NULL
)
THEN
WHEN
(
`b`
.
`height`
=
NULL
)
THEN
0
END
),
0
)
AS
`ehxfscyl`
,
`b`
.
`waterStorage`
AS
`ehxfsccs`
,
`b`
.
`height`
AS
`ehxfscg`
ifnull
(
`b`
.
`waterStorage`
,
0
)
AS
`ehxfsccs`
,
ifnull
(
`b`
.
`height`
,
0
)
AS
`ehxfscg`
FROM
(
(
...
...
@@ -4890,7 +4896,7 @@ FROM
`si`
.
`equipment_index_key`
=
'FHS_FirePoolDevice_WaterLevel'
)
AND
(
`s`
.
`code`
=
'1HXFSCCJZZ10000
1'
--2号消防水池装置code
`s`
.
`code`
=
'1HXFSCCJZZ10000
0'
)
AND
(
`si`
.
`equipment_specific_id`
=
`s`
.
`id`
...
...
@@ -4937,7 +4943,7 @@ FROM
(
(
`i`
.
`field_name`
=
'code'
)
AND
(
`i`
.
`field_value`
=
'SC10
3119'
--2号消防水池(建筑或者房间类型)code
`i`
.
`field_value`
=
'SC10
6268'
)
)
LIMIT
1
...
...
@@ -4946,8 +4952,8 @@ FROM
)
)
`b`
)
)
`eh`
);
)
`eh`
ON
((
1
=
1
))
);
-- 泡沫灭火3小
DROP
VIEW
IF
EXISTS
`v_fire_equip_ffs_num`
;
CREATE
ALGORITHM
=
UNDEFINED
DEFINER
=
`root`
@
`%`
SQL
SECURITY
DEFINER
VIEW
`v_fire_equip_ffs_num`
AS
...
...
amos-boot-system-equip/src/main/resources/mapper/AnalysisReportMonthMapper.xml
View file @
219b997b
...
...
@@ -18,7 +18,7 @@
)
select
a1.*,
DATE_FORMAT(
NOW(
),'%Y-%m')
DATE_FORMAT(
DATE_SUB(NOW(),INTERVAL 1 day
),'%Y-%m')
from
(SELECT
system_id,
...
...
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