diff --git a/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenPublicDataDao.xml b/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenPublicDataDao.xml index 89ff6769..c61919cd 100644 --- a/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenPublicDataDao.xml +++ b/esua-epdc/epdc-module/epdc-analysis/epdc-analysis-server/src/main/resources/mapper/screen/ScreenPublicDataDao.xml @@ -119,16 +119,16 @@ UNION ALL - select GRID_ID, + select DEPT_ID as GRID_ID, 0 as userTotal, 0 AS partyTotal, count(id) as groupTotal, 0 as issueTotal, 0 as topicTotal, 0 as projectTotal, 0 as companyTotal - from esua_epdc_group.epdc_group + from esua_epdc_party_group.epdc_party_group where DEL_FLAG=0 and STATE=10 - group by GRID_ID + group by DEPT_ID union all @@ -163,7 +163,7 @@ 0 as issueTotal, count(id) as topicTotal, 0 as projectTotal, 0 as companyTotal - from esua_epdc_group.epdc_topic + from esua_epdc_party_group.epdc_party_topic where DEL_FLAG=0 group by GRID_ID @@ -251,16 +251,16 @@ UNION ALL UNION ALL - select GRID_ID, + select DEPT_ID as GRID_ID, 0 as userTotal, 0 AS partyTotal, count(id) as groupTotal, 0 as issueTotal, 0 as topicTotal, 0 as projectTotal, 0 as companyTotal - from esua_epdc_group.epdc_group + from esua_epdc_party_group.epdc_party_group where DEL_FLAG=0 and STATE=10 - group by GRID_ID + group by DEPT_ID union all @@ -295,7 +295,7 @@ UNION ALL 0 as issueTotal, count(id) as topicTotal, 0 as projectTotal, 0 as companyTotal - from esua_epdc_group.epdc_topic + from esua_epdc_party_group.epdc_party_topic where DEL_FLAG=0 group by GRID_ID @@ -385,16 +385,16 @@ union all UNION ALL - select GRID_ID, + select DEPT_ID as GRID_ID, 0 as userTotal, 0 AS partyTotal, count(id) as groupTotal, 0 as issueTotal, 0 as topicTotal, 0 as projectTotal, 0 as companyTotal - from esua_epdc_group.epdc_group + from esua_epdc_party_group.epdc_party_group where DEL_FLAG=0 and STATE=10 - group by GRID_ID + group by DEPT_ID union all @@ -429,7 +429,7 @@ union all 0 as issueTotal, count(id) as topicTotal, 0 as projectTotal, 0 as companyTotal - from esua_epdc_group.epdc_topic + from esua_epdc_party_group.epdc_party_topic where DEL_FLAG=0 group by GRID_ID @@ -521,16 +521,16 @@ union all UNION ALL - select GRID_ID, + select DEPT_ID as GRID_ID, 0 as userTotal, 0 AS partyTotal, count(id) as groupTotal, 0 as issueTotal, 0 as topicTotal, 0 as projectTotal, 0 as companyTotal - from esua_epdc_group.epdc_group + from esua_epdc_party_group.epdc_party_group where DEL_FLAG=0 and STATE=10 - group by GRID_ID + group by DEPT_ID union all @@ -565,7 +565,7 @@ union all 0 as issueTotal, count(id) as topicTotal, 0 as projectTotal, 0 as companyTotal - from esua_epdc_group.epdc_topic + from esua_epdc_party_group.epdc_party_topic where DEL_FLAG=0 group by GRID_ID @@ -602,7 +602,6 @@ union all WHERE t.`del_flag`= 0) and city.type_key='district_party' and city.party_code='shibei' GROUP BY city.id -