Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
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
station
YeeAmosFireAutoSysRoot
Commits
b6f2857e
Commit
b6f2857e
authored
Sep 28, 2021
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改三维查询脚本
parent
15befc78
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
dbTemplate_view3d.xml
...sStart/src/main/resources/db/mapper/dbTemplate_view3d.xml
+11
-11
No files found.
YeeAmosFireAutoSysStart/src/main/resources/db/mapper/dbTemplate_view3d.xml
View file @
b6f2857e
...
@@ -2073,19 +2073,19 @@
...
@@ -2073,19 +2073,19 @@
r.`code`,
r.`code`,
'riskSource' AS type,
'riskSource' AS type,
r.org_code AS orgCode,
r.org_code AS orgCode,
rl.`level` AS
`level`
,
rl.`level` AS
level
,
rl.`name` AS levelStr,
rl.`name` AS levelStr,
r.is_indoor AS isIndoor,
r.is_indoor AS isIndoor,
'风险点' AS typeName,
'风险点' AS typeName,
'riskSource' AS typeCode,
'riskSource' AS typeCode,
r.`name` AS protectObjName,
r.`name` AS label,
r.`name` AS label,
r.`name` AS protectObjName,
'' AS routeName,
'' AS routeName,
'' AS areaId,
'' AS person,
'' AS person,
r.rpn AS title,
r.rpn AS title,
CONCAT('riskSource-', r.id) AS `key`,
CONCAT('riskSource-', r.id) AS `key`,
r.id AS riskSourceId,
r.id AS riskSourceId,
'' AS areaId,
'' AS room
'' AS room
FROM
FROM
f_risk_source r
f_risk_source r
...
@@ -2111,11 +2111,11 @@
...
@@ -2111,11 +2111,11 @@
vi.`name` AS label,
vi.`name` AS label,
vi.`name` AS protectObjName,
vi.`name` AS protectObjName,
'' AS routeName,
'' AS routeName,
vi.belongAreaId AS areaId,
'' AS person,
'' AS person,
vi.`name` AS title,
vi.`name` AS title,
concat('video-', vi.id) AS `key`,
concat('video-', vi.id) AS `key`,
'' AS riskSourceId,
'' AS riskSourceId,
vi.belongAreaId AS areaId,
vi.address AS room
vi.address AS room
FROM
FROM
wl_video AS vi
wl_video AS vi
...
@@ -2129,17 +2129,18 @@
...
@@ -2129,17 +2129,18 @@
concat('patrol-', p.id) AS id,
concat('patrol-', p.id) AS id,
concat(p.id) AS originId,
concat(p.id) AS originId,
p.`name`,
p.`name`,
p.`name` AS protectObjName,
p.point_no AS CODE,
p.point_no AS CODE,
'patrol' AS type,
'patrol' AS type,
p.org_code AS orgCode,
p.org_code AS orgCode,
p.`status` AS
LEVEL
,
p.`status` AS
level
,
CONCAT('level_', p.
STATUS) AS levelStr,
CONCAT('level_', p.STATUS) AS levelStr,
p.is_indoor AS isIndoor,
p.is_indoor AS isIndoor,
'巡检点' AS typeName,
'巡检点' AS typeName,
'patrol' AS typeCode,
'patrol' AS typeCode,
p.`name` AS label,
p.`name` AS label,
p.`name` AS protectObjName,
p.route_name AS routeName,
p.route_name AS routeName,
p.area_id AS areaId,
p.charge_person_id AS person,
p.charge_person_id AS person,
CASE
CASE
WHEN p.`status` = '0' THEN
WHEN p.`status` = '0' THEN
...
@@ -2153,7 +2154,6 @@
...
@@ -2153,7 +2154,6 @@
END AS title,
END AS title,
concat('patrol-', p.id) AS `key`,
concat('patrol-', p.id) AS `key`,
p.risk_source_id AS riskSourceId,
p.risk_source_id AS riskSourceId,
p.area_id AS areaId,
r.full_name AS room
r.full_name AS room
FROM
FROM
p_point p
p_point p
...
@@ -2169,7 +2169,6 @@
...
@@ -2169,7 +2169,6 @@
concat('fireEquipment-', m.id) AS id,
concat('fireEquipment-', m.id) AS id,
concat(m.id) AS originId,
concat(m.id) AS originId,
det.`name`,
det.`name`,
det.`name` AS protectObjName,
m.`code` AS `code`,
m.`code` AS `code`,
'fireEquipment' AS type,
'fireEquipment' AS type,
m.org_code AS orgCode,
m.org_code AS orgCode,
...
@@ -2179,12 +2178,13 @@
...
@@ -2179,12 +2178,13 @@
'消防设备' AS typeName,
'消防设备' AS typeName,
'fireEquipment' AS typeCode,
'fireEquipment' AS typeCode,
det.`name` AS label,
det.`name` AS label,
det.`name` AS protectObjName,
'' AS routeName,
'' AS routeName,
m.area_id AS areaId,
'' AS person,
'' AS person,
det.`name` AS title,
det.`name` AS title,
concat('fireEquipment-', m.id) AS `key`,
concat('fireEquipment-', m.id) AS `key`,
risk.id AS riskSourceId,
risk.id AS riskSourceId,
m.area_id AS areaId,
str.full_name AS room
str.full_name AS room
FROM
FROM
wl_equipment_specific m
wl_equipment_specific m
...
@@ -2204,7 +2204,7 @@
...
@@ -2204,7 +2204,7 @@
</where>
</where>
GROUP BY
GROUP BY
m.code) as tmp
m.code) as tmp
<where>
<where>
<if
test=
"inputText!=null and inputText != ''"
>
<if
test=
"inputText!=null and inputText != ''"
>
AND (
AND (
tmp.code LIKE '%${inputText}%'
tmp.code LIKE '%${inputText}%'
...
...
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