Commit f8ce56b6 authored by KeYong's avatar KeYong

修改右侧边栏按名称搜索

parent 2dfe3187
......@@ -322,6 +322,7 @@
(
SELECT
r.`code`,
r.`name`,
r.org_code AS orgCode,
'riskSource' AS typeCode,
r.id AS riskSourceId
......@@ -336,6 +337,7 @@
UNION ALL
SELECT
p.point_no AS code,
p.`name`,
p.org_code AS orgCode,
'patrol' AS typeCode,
p.risk_source_id AS riskSourceId
......@@ -347,6 +349,7 @@
UNION ALL
SELECT
e.`code`,
e.`name`,
e.org_code AS orgCode,
'impEquipment' AS typeCode,
e.risk_source_id AS riskSourceId
......@@ -356,6 +359,7 @@
UNION ALL
SELECT
m.`code` AS code,
m.`name`,
m.org_code AS orgCode,
'monitorEquipment' AS typeCode,
risk.id AS riskSourceId
......@@ -379,6 +383,7 @@
UNION ALL
SELECT
vi.`code`,
vi.`name`,
vi.org_code AS orgCode,
'video' AS typeCode,
vis.source_id AS riskSourceId
......@@ -391,6 +396,7 @@
UNION ALL
SELECT
spe.`code` AS code,
spe.`name`,
spe.org_code AS orgCode,
'fireEquipment' AS typeCode,
str.source_id AS riskSourceId
......@@ -407,6 +413,7 @@
UNION ALL
SELECT
s.`code`,
s.`name`,
s.orgCode,
'fireEquipment' AS typeCode,
r.id AS riskSourceId
......@@ -450,6 +457,7 @@
UNION ALL
SELECT
car.car_num AS code,
car.`name`,
car.org_code AS orgCode,
'fireEquipment' AS typeCode,
#{riskSourceId} as riskSourceId
......@@ -460,6 +468,7 @@
UNION ALL
SELECT
spe.`code` AS code,
spe.`name`,
spe.org_code AS orgCode,
'fireEquipment' AS typeCode,
risk.id AS riskSourceId
......@@ -477,6 +486,7 @@
UNION ALL
SELECT
s.`code`,
s.`name`,
s.orgCode,
'fireEquipment' AS typeCode,
r.id AS riskSourceId
......@@ -525,6 +535,7 @@
UNION ALL
SELECT
s.`code`,
s.`name`,
s.orgCode,
'fireEquipment' AS typeCode,
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