Commit f8ce56b6 authored by KeYong's avatar KeYong

修改右侧边栏按名称搜索

parent 2dfe3187
...@@ -322,6 +322,7 @@ ...@@ -322,6 +322,7 @@
( (
SELECT SELECT
r.`code`, r.`code`,
r.`name`,
r.org_code AS orgCode, r.org_code AS orgCode,
'riskSource' AS typeCode, 'riskSource' AS typeCode,
r.id AS riskSourceId r.id AS riskSourceId
...@@ -336,6 +337,7 @@ ...@@ -336,6 +337,7 @@
UNION ALL UNION ALL
SELECT SELECT
p.point_no AS code, p.point_no AS code,
p.`name`,
p.org_code AS orgCode, p.org_code AS orgCode,
'patrol' AS typeCode, 'patrol' AS typeCode,
p.risk_source_id AS riskSourceId p.risk_source_id AS riskSourceId
...@@ -347,6 +349,7 @@ ...@@ -347,6 +349,7 @@
UNION ALL UNION ALL
SELECT SELECT
e.`code`, e.`code`,
e.`name`,
e.org_code AS orgCode, e.org_code AS orgCode,
'impEquipment' AS typeCode, 'impEquipment' AS typeCode,
e.risk_source_id AS riskSourceId e.risk_source_id AS riskSourceId
...@@ -356,6 +359,7 @@ ...@@ -356,6 +359,7 @@
UNION ALL UNION ALL
SELECT SELECT
m.`code` AS code, m.`code` AS code,
m.`name`,
m.org_code AS orgCode, m.org_code AS orgCode,
'monitorEquipment' AS typeCode, 'monitorEquipment' AS typeCode,
risk.id AS riskSourceId risk.id AS riskSourceId
...@@ -379,6 +383,7 @@ ...@@ -379,6 +383,7 @@
UNION ALL UNION ALL
SELECT SELECT
vi.`code`, vi.`code`,
vi.`name`,
vi.org_code AS orgCode, vi.org_code AS orgCode,
'video' AS typeCode, 'video' AS typeCode,
vis.source_id AS riskSourceId vis.source_id AS riskSourceId
...@@ -391,6 +396,7 @@ ...@@ -391,6 +396,7 @@
UNION ALL UNION ALL
SELECT SELECT
spe.`code` AS code, spe.`code` AS code,
spe.`name`,
spe.org_code AS orgCode, spe.org_code AS orgCode,
'fireEquipment' AS typeCode, 'fireEquipment' AS typeCode,
str.source_id AS riskSourceId str.source_id AS riskSourceId
...@@ -407,6 +413,7 @@ ...@@ -407,6 +413,7 @@
UNION ALL UNION ALL
SELECT SELECT
s.`code`, s.`code`,
s.`name`,
s.orgCode, s.orgCode,
'fireEquipment' AS typeCode, 'fireEquipment' AS typeCode,
r.id AS riskSourceId r.id AS riskSourceId
...@@ -450,6 +457,7 @@ ...@@ -450,6 +457,7 @@
UNION ALL UNION ALL
SELECT SELECT
car.car_num AS code, car.car_num AS code,
car.`name`,
car.org_code AS orgCode, car.org_code AS orgCode,
'fireEquipment' AS typeCode, 'fireEquipment' AS typeCode,
#{riskSourceId} as riskSourceId #{riskSourceId} as riskSourceId
...@@ -460,6 +468,7 @@ ...@@ -460,6 +468,7 @@
UNION ALL UNION ALL
SELECT SELECT
spe.`code` AS code, spe.`code` AS code,
spe.`name`,
spe.org_code AS orgCode, spe.org_code AS orgCode,
'fireEquipment' AS typeCode, 'fireEquipment' AS typeCode,
risk.id AS riskSourceId risk.id AS riskSourceId
...@@ -477,6 +486,7 @@ ...@@ -477,6 +486,7 @@
UNION ALL UNION ALL
SELECT SELECT
s.`code`, s.`code`,
s.`name`,
s.orgCode, s.orgCode,
'fireEquipment' AS typeCode, 'fireEquipment' AS typeCode,
r.id AS riskSourceId r.id AS riskSourceId
...@@ -525,6 +535,7 @@ ...@@ -525,6 +535,7 @@
UNION ALL UNION ALL
SELECT SELECT
s.`code`, s.`code`,
s.`name`,
s.orgCode, s.orgCode,
'fireEquipment' AS typeCode, 'fireEquipment' AS typeCode,
r.id AS riskSourceId r.id AS riskSourceId
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment