|
@@ -1011,16 +1011,24 @@
|
|
|
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
|
|
|
+ 314393
|
|
|
+ WHEN a.qx = '台阁牧镇' THEN
|
|
|
+ 314394
|
|
|
+ WHEN a.qx = '敕勒川镇' THEN
|
|
|
+ 314395
|
|
|
+ WHEN a.qx = '察素齐镇' THEN
|
|
|
+ 314439
|
|
|
+ WHEN a.qx = '白庙子镇' THEN
|
|
|
+ 314440
|
|
|
+ WHEN a.qx = '善岱镇' THEN
|
|
|
+ 314441
|
|
|
+ WHEN a.qx = '北什轴乡' THEN
|
|
|
+ 314442
|
|
|
+ WHEN a.qx = '敕勒川乳业开发区' THEN
|
|
|
+ 314778
|
|
|
END
|
|
|
) deptId,
|
|
|
IFNULL(a.camera_online, 0) camera_online,
|
|
@@ -1038,21 +1046,33 @@
|
|
|
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(314393, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314393 THEN
|
|
|
+ '塔布赛乡'
|
|
|
+ WHEN find_in_set(314394, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314394 THEN
|
|
|
+ '台阁牧镇'
|
|
|
+ WHEN find_in_set(314395, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314395 THEN
|
|
|
+ '敕勒川镇'
|
|
|
+ WHEN find_in_set(314439, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314439 THEN
|
|
|
+ '察素齐镇'
|
|
|
+ WHEN find_in_set(314440, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314440 THEN
|
|
|
+ '白庙子镇'
|
|
|
+ WHEN find_in_set(314441, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314441 THEN
|
|
|
+ '善岱镇'
|
|
|
+ WHEN find_in_set(314442, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314442 THEN
|
|
|
+ '北什轴乡'
|
|
|
+ WHEN find_in_set(314778, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314778 THEN
|
|
|
+ '敕勒川乳业开发区'
|
|
|
ELSE
|
|
|
'0'
|
|
|
END
|
|
@@ -1075,21 +1095,33 @@
|
|
|
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(314393, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314393 THEN
|
|
|
+ '塔布赛乡'
|
|
|
+ WHEN find_in_set(314394, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314394 THEN
|
|
|
+ '台阁牧镇'
|
|
|
+ WHEN find_in_set(314395, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314395 THEN
|
|
|
+ '敕勒川镇'
|
|
|
+ WHEN find_in_set(314439, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314439 THEN
|
|
|
+ '察素齐镇'
|
|
|
+ WHEN find_in_set(314440, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314440 THEN
|
|
|
+ '白庙子镇'
|
|
|
+ WHEN find_in_set(314441, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314441 THEN
|
|
|
+ '善岱镇'
|
|
|
+ WHEN find_in_set(314442, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314442 THEN
|
|
|
+ '北什轴乡'
|
|
|
+ WHEN find_in_set(314778, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314778 THEN
|
|
|
+ '敕勒川乳业开发区'
|
|
|
ELSE
|
|
|
'0'
|
|
|
END
|
|
@@ -1120,21 +1152,33 @@
|
|
|
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(314393, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314393 THEN
|
|
|
+ '塔布赛乡'
|
|
|
+ WHEN find_in_set(314394, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314394 THEN
|
|
|
+ '台阁牧镇'
|
|
|
+ WHEN find_in_set(314395, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314395 THEN
|
|
|
+ '敕勒川镇'
|
|
|
+ WHEN find_in_set(314439, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314439 THEN
|
|
|
+ '察素齐镇'
|
|
|
+ WHEN find_in_set(314440, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314440 THEN
|
|
|
+ '白庙子镇'
|
|
|
+ WHEN find_in_set(314441, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314441 THEN
|
|
|
+ '善岱镇'
|
|
|
+ WHEN find_in_set(314442, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314442 THEN
|
|
|
+ '北什轴乡'
|
|
|
+ WHEN find_in_set(314778, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314778 THEN
|
|
|
+ '敕勒川乳业开发区'
|
|
|
ELSE
|
|
|
'0'
|
|
|
END
|
|
@@ -1152,21 +1196,33 @@
|
|
|
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(314393, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314393 THEN
|
|
|
+ '塔布赛乡'
|
|
|
+ WHEN find_in_set(314394, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314394 THEN
|
|
|
+ '台阁牧镇'
|
|
|
+ WHEN find_in_set(314395, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314395 THEN
|
|
|
+ '敕勒川镇'
|
|
|
+ WHEN find_in_set(314439, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314439 THEN
|
|
|
+ '察素齐镇'
|
|
|
+ WHEN find_in_set(314440, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314440 THEN
|
|
|
+ '白庙子镇'
|
|
|
+ WHEN find_in_set(314441, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314441 THEN
|
|
|
+ '善岱镇'
|
|
|
+ WHEN find_in_set(314442, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314442 THEN
|
|
|
+ '北什轴乡'
|
|
|
+ WHEN find_in_set(314778, cd.ancestors) > 0
|
|
|
+ OR cd.dept_id = 314778 THEN
|
|
|
+ '敕勒川乳业开发区'
|
|
|
ELSE
|
|
|
'0'
|
|
|
END
|