| 
						
						
							
								
							
						
						
					 | 
					@ -6,6 +6,7 @@ import com.epmet.commons.tools.utils.DateUtils; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dto.extract.form.ExtractOriginFormDTO; | 
					 | 
					 | 
					import com.epmet.dto.extract.form.ExtractOriginFormDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dto.extract.form.ExtractScreenFormDTO; | 
					 | 
					 | 
					import com.epmet.dto.extract.form.ExtractScreenFormDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.dto.indexcal.CalculateCommonFormDTO; | 
					 | 
					 | 
					import com.epmet.dto.indexcal.CalculateCommonFormDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import com.epmet.dto.screen.form.ScreenCentralZoneDataFormDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.service.evaluationindex.extract.toscreen.*; | 
					 | 
					 | 
					import com.epmet.service.evaluationindex.extract.toscreen.*; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.service.evaluationindex.indexcal.IndexCalculateService; | 
					 | 
					 | 
					import com.epmet.service.evaluationindex.indexcal.IndexCalculateService; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.service.stats.DimCustomerService; | 
					 | 
					 | 
					import com.epmet.service.stats.DimCustomerService; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -48,6 +49,10 @@ public class ScreenExtractServiceImpl implements ScreenExtractService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Autowired | 
					 | 
					 | 
					    @Autowired | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    private IndexCalculateService indexCalculateService; | 
					 | 
					 | 
					    private IndexCalculateService indexCalculateService; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    @Autowired | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    private ScreenCentralZoneDataAbsorptionService screenCentralZoneDataAbsorptionService; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    @Autowired | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    private ScreenGrassrootsGovernDataAbsorptionService screenGrassrootsGovernDataAbsorptionService; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    /** | 
					 | 
					 | 
					    /** | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					     * @param extractOriginFormDTO | 
					 | 
					 | 
					     * @param extractOriginFormDTO | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					     * @Description 抽取数据到大屏【天】 | 
					 | 
					 | 
					     * @Description 抽取数据到大屏【天】 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -120,13 +125,40 @@ public class ScreenExtractServiceImpl implements ScreenExtractService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					     */ | 
					 | 
					 | 
					     */ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    public void extractDaily(String customerId, String dateId) { | 
					 | 
					 | 
					    public void extractDaily(String customerId, String dateId) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //党员基本情况screen_cpc_base_data
 | 
					 | 
					 | 
					        //党员基本情况screen_cpc_base_data
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        partyBaseInfoService.statsPartyMemberBaseInfoToScreen(customerId,dateId); | 
					 | 
					 | 
					        try { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            partyBaseInfoService.statsPartyMemberBaseInfoToScreen(customerId,dateId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        }catch (Exception e){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.error("党员基本情况抽取到大屏失败,customerId为:"+customerId+"dateId为:"+dateId, e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //先锋模范screen_pioneer_data
 | 
					 | 
					 | 
					        //先锋模范screen_pioneer_data
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        pioneerDataExtractService.extractGridPioneerData(customerId, dateId); | 
					 | 
					 | 
					        try { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        pioneerDataExtractService.extractCommunityPioneerData(customerId, dateId); | 
					 | 
					 | 
					            pioneerDataExtractService.extractGridPioneerData(customerId, dateId); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        pioneerDataExtractService.extractExceptCommunityPioneerData(customerId, dateId); | 
					 | 
					 | 
					        }catch (Exception e){ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.error("先锋模范【网格】抽取到大屏失败,customerId为:"+customerId+"dateId为:"+dateId, e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            pioneerDataExtractService.extractCommunityPioneerData(customerId, dateId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        }catch (Exception e){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.error("先锋模范【社区】抽取到大屏失败,customerId为:"+customerId+"dateId为:"+dateId, e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            pioneerDataExtractService.extractExceptCommunityPioneerData(customerId, dateId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        }catch (Exception e){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.error("先锋模范【extractExceptCommunityPioneerData】抽取到大屏失败,customerId为:"+customerId+"dateId为:"+dateId, e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //公众参与排行(注册人数、参与人数、话题数、议题数、项目数)screen_public_parti_total_data
 | 
					 | 
					 | 
					        //公众参与排行(注册人数、参与人数、话题数、议题数、项目数)screen_public_parti_total_data
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        publicPartiTotalDataExtractService.extractPublicPartiTotalData(customerId,dateId); | 
					 | 
					 | 
					        try { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            publicPartiTotalDataExtractService.extractPublicPartiTotalData(customerId,dateId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        }catch (Exception e){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.error("公众参与排行抽取到大屏失败,customerId为:"+customerId+"dateId为:"+dateId, e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        ScreenCentralZoneDataFormDTO param = new ScreenCentralZoneDataFormDTO(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        param.setCustomerId(customerId);param.setDateId(dateId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        //中央区 screen_user_total_data
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        screenCentralZoneDataAbsorptionService.centralZoneDataHub(param); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        //基层治理- 难点赌点 screen_difficulty_data  |  screen_difficulty_img_data
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        screenGrassrootsGovernDataAbsorptionService.difficultyDataHub(param); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    /** | 
					 | 
					 | 
					    /** | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -140,19 +172,59 @@ public class ScreenExtractServiceImpl implements ScreenExtractService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        formDTO.setMonthId(monthId); | 
					 | 
					 | 
					        formDTO.setMonthId(monthId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //基层治理-公众参与screen_user_join
 | 
					 | 
					 | 
					        //基层治理-公众参与screen_user_join
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        publicPartExtractService.extractTotalDataMonthly(formDTO); | 
					 | 
					 | 
					        try { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            publicPartExtractService.extractTotalDataMonthly(formDTO); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        }catch (Exception e){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.error("基层治理-公众参与抽取到大屏失败,参数为:"+ JSON.toJSONString(formDTO), e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //治理能力排行screen_govern_rank_data
 | 
					 | 
					 | 
					        //治理能力排行screen_govern_rank_data
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        governRankDataExtractService.extractGridData(customerId, monthId); | 
					 | 
					 | 
					        try { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        governRankDataExtractService.extractCommunityData(customerId, monthId); | 
					 | 
					 | 
					            governRankDataExtractService.extractGridData(customerId, monthId); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        governRankDataExtractService.extractStreetData(customerId, monthId); | 
					 | 
					 | 
					        }catch (Exception e){ | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        governRankDataExtractService.extractDistrictData(customerId, monthId); | 
					 | 
					 | 
					            log.error("治理能力排行【网格】抽取到大屏失败,参数为:"+ JSON.toJSONString(formDTO), e); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            governRankDataExtractService.extractCommunityData(customerId, monthId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        }catch (Exception e){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.error("治理能力排行【社区】抽取到大屏失败,参数为:"+ JSON.toJSONString(formDTO), e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            governRankDataExtractService.extractStreetData(customerId, monthId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        }catch (Exception e){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.error("治理能力排行【街道】抽取到大屏失败,参数为:"+ JSON.toJSONString(formDTO), e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            governRankDataExtractService.extractDistrictData(customerId, monthId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        }catch (Exception e){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.error("治理能力排行【全区】抽取到大屏失败,参数为:"+ JSON.toJSONString(formDTO), e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //先进排行 screen_org_rank_data
 | 
					 | 
					 | 
					        //先进排行 screen_org_rank_data
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        orgRankExtractService.extractGridData(customerId, monthId); | 
					 | 
					 | 
					        try { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        orgRankExtractService.extractCommunityData(customerId, monthId); | 
					 | 
					 | 
					            orgRankExtractService.extractGridData(customerId, monthId); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        orgRankExtractService.extractStreetData(customerId, monthId); | 
					 | 
					 | 
					        }catch (Exception e){ | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        orgRankExtractService.extractDistrictData(customerId, monthId); | 
					 | 
					 | 
					            log.error("先进排行【网格】抽取到大屏失败,参数为:"+ JSON.toJSONString(formDTO), e); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            orgRankExtractService.extractCommunityData(customerId, monthId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        }catch (Exception e){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.error("先进排行【社区】抽取到大屏失败,参数为:"+ JSON.toJSONString(formDTO), e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            orgRankExtractService.extractStreetData(customerId, monthId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        }catch (Exception e){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.error("先进排行【街道】抽取到大屏失败,参数为:"+ JSON.toJSONString(formDTO), e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            orgRankExtractService.extractDistrictData(customerId, monthId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        }catch (Exception e){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.error("先进排行【全区】抽取到大屏失败,参数为:"+ JSON.toJSONString(formDTO), e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        // 党建引领 screen_party_branch_data,screen_party_link_masses_data
 | 
					 | 
					 | 
					        // 党建引领 screen_party_branch_data,screen_party_link_masses_data
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        partyGuideService.partyGuideExtract(formDTO); | 
					 | 
					 | 
					        try { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            partyGuideService.partyGuideExtract(formDTO); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        }catch (Exception e){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.error("党建引领抽取到大屏失败,参数为:"+ JSON.toJSONString(formDTO), e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //计算分数 todo 优化 手动创建线程池 控制任务数量
 | 
					 | 
					 | 
					        //计算分数 todo 优化 手动创建线程池 控制任务数量
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        ExecutorService pool = Executors.newSingleThreadExecutor(); | 
					 | 
					 | 
					        ExecutorService pool = Executors.newSingleThreadExecutor(); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -166,5 +238,9 @@ public class ScreenExtractServiceImpl implements ScreenExtractService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                log.error("extractMonthly 计算分数异常,参数:{}", JSON.toJSONString(formDTO1)); | 
					 | 
					 | 
					                log.error("extractMonthly 计算分数异常,参数:{}", JSON.toJSONString(formDTO1)); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        }); | 
					 | 
					 | 
					        }); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        //基层治理 - 热心市民 screen_party_user_rank_data
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        ScreenCentralZoneDataFormDTO param = new ScreenCentralZoneDataFormDTO(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        param.setCustomerId(customerId);param.setDateId(monthId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        screenGrassrootsGovernDataAbsorptionService.userScoreDataHub(param); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					} | 
					 | 
					 | 
					} | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
					 | 
					
  |