|
@@ -1011,16 +1011,14 @@
|
|
|
SELECT a.qx,
|
|
|
(
|
|
|
CASE
|
|
|
- WHEN a.qx = '双辽市' THEN
|
|
|
- 369
|
|
|
- WHEN a.qx = '伊通县' THEN
|
|
|
- 370
|
|
|
- WHEN a.qx = '梨树县' THEN
|
|
|
- 371
|
|
|
- WHEN a.qx = '铁东区' THEN
|
|
|
- 372
|
|
|
- WHEN a.qx = '铁西区' THEN
|
|
|
- 373
|
|
|
+ WHEN a.qx = '敖勒召其镇' THEN
|
|
|
+ 314391
|
|
|
+ WHEN a.qx = '城川镇' THEN
|
|
|
+ 314392
|
|
|
+ WHEN a.qx = '昂素镇 ' THEN
|
|
|
+ 314393
|
|
|
+ WHEN a.qx = '上海庙镇' THEN
|
|
|
+ 314394
|
|
|
END
|
|
|
) deptId,
|
|
|
IFNULL(a.camera_online, 0) camera_online,
|
|
@@ -1038,21 +1036,18 @@
|
|
|
c.working_status,
|
|
|
(
|
|
|
CASE
|
|
|
- WHEN find_in_set(369, cd.ancestors) > 0
|
|
|
- OR cd.dept_id = 369 THEN
|
|
|
- '双辽市'
|
|
|
- WHEN find_in_set(370, cd.ancestors) > 0
|
|
|
- OR cd.dept_id = 370 THEN
|
|
|
- '伊通县'
|
|
|
- WHEN find_in_set(371, cd.ancestors) > 0
|
|
|
- OR cd.dept_id = 371 THEN
|
|
|
- '梨树县'
|
|
|
- WHEN find_in_set(372, cd.ancestors) > 0
|
|
|
- OR cd.dept_id = 372 THEN
|
|
|
- '铁东区'
|
|
|
- WHEN find_in_set(373, cd.ancestors) > 0
|
|
|
- OR cd.dept_id = 373 THEN
|
|
|
- '铁西区'
|
|
|
+ WHEN find_in_set(314391, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314391 THEN
|
|
|
+ '敖勒召其镇'
|
|
|
+ WHEN find_in_set(314392, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314392 THEN
|
|
|
+ '城川镇'
|
|
|
+ WHEN find_in_set(314393, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314393 THEN
|
|
|
+ '昂素镇'
|
|
|
+ WHEN find_in_set(314394, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314394 THEN
|
|
|
+ '上海庙镇'
|
|
|
ELSE
|
|
|
'0'
|
|
|
END
|
|
@@ -1075,21 +1070,18 @@
|
|
|
c.working_status,
|
|
|
(
|
|
|
CASE
|
|
|
- WHEN find_in_set(369, cd.ancestors) > 0
|
|
|
- OR cd.dept_id = 369 THEN
|
|
|
- '双辽市'
|
|
|
- WHEN find_in_set(370, cd.ancestors) > 0
|
|
|
- OR cd.dept_id = 370 THEN
|
|
|
- '伊通县'
|
|
|
- WHEN find_in_set(371, cd.ancestors) > 0
|
|
|
- OR cd.dept_id = 371 THEN
|
|
|
- '梨树县'
|
|
|
- WHEN find_in_set(372, cd.ancestors) > 0
|
|
|
- OR cd.dept_id = 372 THEN
|
|
|
- '铁东区'
|
|
|
- WHEN find_in_set(373, cd.ancestors) > 0
|
|
|
- OR cd.dept_id = 373 THEN
|
|
|
- '铁西区'
|
|
|
+ WHEN find_in_set(314391, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314391 THEN
|
|
|
+ '敖勒召其镇'
|
|
|
+ WHEN find_in_set(314392, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314392 THEN
|
|
|
+ '城川镇'
|
|
|
+ WHEN find_in_set(314393, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314393 THEN
|
|
|
+ '昂素镇'
|
|
|
+ WHEN find_in_set(314394, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314394 THEN
|
|
|
+ '上海庙镇'
|
|
|
ELSE
|
|
|
'0'
|
|
|
END
|
|
@@ -1120,21 +1112,18 @@
|
|
|
c.working_status,
|
|
|
(
|
|
|
CASE
|
|
|
- WHEN find_in_set(369, cd.ancestors) > 0
|
|
|
- OR cd.dept_id = 369 THEN
|
|
|
- '双辽市'
|
|
|
- WHEN find_in_set(370, cd.ancestors) > 0
|
|
|
- OR cd.dept_id = 370 THEN
|
|
|
- '伊通县'
|
|
|
- WHEN find_in_set(371, cd.ancestors) > 0
|
|
|
- OR cd.dept_id = 371 THEN
|
|
|
- '梨树县'
|
|
|
- WHEN find_in_set(372, cd.ancestors) > 0
|
|
|
- OR cd.dept_id = 372 THEN
|
|
|
- '铁东区'
|
|
|
- WHEN find_in_set(373, cd.ancestors) > 0
|
|
|
- OR cd.dept_id = 373 THEN
|
|
|
- '铁西区'
|
|
|
+ WHEN find_in_set(314391, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314391 THEN
|
|
|
+ '敖勒召其镇'
|
|
|
+ WHEN find_in_set(314392, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314392 THEN
|
|
|
+ '城川镇'
|
|
|
+ WHEN find_in_set(314393, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314393 THEN
|
|
|
+ '昂素镇'
|
|
|
+ WHEN find_in_set(314394, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314394 THEN
|
|
|
+ '上海庙镇'
|
|
|
ELSE
|
|
|
'0'
|
|
|
END
|
|
@@ -1152,21 +1141,18 @@
|
|
|
c.working_status,
|
|
|
(
|
|
|
CASE
|
|
|
- WHEN find_in_set(369, cd.ancestors) > 0
|
|
|
- OR cd.dept_id = 369 THEN
|
|
|
- '双辽市'
|
|
|
- WHEN find_in_set(370, cd.ancestors) > 0
|
|
|
- OR cd.dept_id = 370 THEN
|
|
|
- '伊通县'
|
|
|
- WHEN find_in_set(371, cd.ancestors) > 0
|
|
|
- OR cd.dept_id = 371 THEN
|
|
|
- '梨树县'
|
|
|
- WHEN find_in_set(372, cd.ancestors) > 0
|
|
|
- OR cd.dept_id = 372 THEN
|
|
|
- '铁东区'
|
|
|
- WHEN find_in_set(373, cd.ancestors) > 0
|
|
|
- OR cd.dept_id = 373 THEN
|
|
|
- '铁西区'
|
|
|
+ WHEN find_in_set(314391, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314391 THEN
|
|
|
+ '敖勒召其镇'
|
|
|
+ WHEN find_in_set(314392, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314392 THEN
|
|
|
+ '城川镇'
|
|
|
+ WHEN find_in_set(314393, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314393 THEN
|
|
|
+ '昂素镇'
|
|
|
+ WHEN find_in_set(314394, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314394 THEN
|
|
|
+ '上海庙镇'
|
|
|
ELSE
|
|
|
'0'
|
|
|
END
|