| 
						
						
							
								
							
						
						
					 | 
					@ -160,10 +160,18 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								if (!CollectionUtils.isEmpty(customerIdList)) { | 
					 | 
					 | 
								if (!CollectionUtils.isEmpty(customerIdList)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									for (String customerId : customerIdList) { | 
					 | 
					 | 
									for (String customerId : customerIdList) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
										Date finalStatsDate = statsDate; | 
					 | 
					 | 
										Date finalStatsDate = statsDate; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
										//executorService.submit(() -> {
 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
										//统计
 | 
					 | 
					 | 
										//统计
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
										try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
											statsTagUsedDaily(finalStatsDate, dimIdBean, customerId); | 
					 | 
					 | 
											statsTagUsedDaily(finalStatsDate, dimIdBean, customerId); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
										//});
 | 
					 | 
					 | 
										} catch (Exception e) { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
											log.error(String.format(ProjectConstant.STATS_FAILED_PREFIX, "tagUsedDailyStatsjob", customerId, dimIdBean.getDateId(), e.getMessage())); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
											try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按日统计标签被使用次数", customerId, dimIdBean.getMonthId(), e.getMessage()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												HttpClientManager.getInstance().sendAlarmMsg(content); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
											} catch (Exception ex) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												log.error("sendAlarmMsg  exception", e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
											} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
										} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									} | 
					 | 
					 | 
									} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} | 
					 | 
					 | 
								} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} while (!CollectionUtils.isEmpty(customerIdList) && customerIdList.size() == pageSize); | 
					 | 
					 | 
							} while (!CollectionUtils.isEmpty(customerIdList) && customerIdList.size() == pageSize); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -187,13 +195,17 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								customerIdList = dimCustomerService.selectCustomerIdPage(pageNo++, pageSize); | 
					 | 
					 | 
								customerIdList = dimCustomerService.selectCustomerIdPage(pageNo++, pageSize); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								if (!CollectionUtils.isEmpty(customerIdList)) { | 
					 | 
					 | 
								if (!CollectionUtils.isEmpty(customerIdList)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									for (String customerId : customerIdList) { | 
					 | 
					 | 
									for (String customerId : customerIdList) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
										executorService.submit(() -> { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
										try { | 
					 | 
					 | 
										try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
											statsTagUsedMonthly(dimIdBean.getMonthId(), customerId); | 
					 | 
					 | 
											statsTagUsedMonthly(dimIdBean.getMonthId(), customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
										} catch (Exception e) { | 
					 | 
					 | 
										} catch (Exception e) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
												log.error("statsTagUsedMonthly exception", e); | 
					 | 
					 | 
											log.error(String.format(ProjectConstant.STATS_FAILED_PREFIX, "按月统计标签被使用次数", customerId, dimIdBean.getMonthId(), e.getMessage())); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
											try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按月统计标签被使用次数", customerId, dimIdBean.getMonthId(), e.getMessage()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												HttpClientManager.getInstance().sendAlarmMsg(content); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
											} catch (Exception ex) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												log.error("sendAlarmMsg  exception", e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
											} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
										} | 
					 | 
					 | 
										} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
										}); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									} | 
					 | 
					 | 
									} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} | 
					 | 
					 | 
								} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} while (!CollectionUtils.isEmpty(customerIdList) && customerIdList.size() == pageSize); | 
					 | 
					 | 
							} while (!CollectionUtils.isEmpty(customerIdList) && customerIdList.size() == pageSize); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -218,9 +230,17 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								customerIdList = dimCustomerService.selectCustomerIdPage(pageNo++, pageSize); | 
					 | 
					 | 
								customerIdList = dimCustomerService.selectCustomerIdPage(pageNo++, pageSize); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								if (!CollectionUtils.isEmpty(customerIdList)) { | 
					 | 
					 | 
								if (!CollectionUtils.isEmpty(customerIdList)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									for (String customerId : customerIdList) { | 
					 | 
					 | 
									for (String customerId : customerIdList) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
										Date finalStatsDate = statsDate; | 
					 | 
					 | 
										try { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
										//统计
 | 
					 | 
					 | 
											statsTagViewedDaily(statsDate, dimIdBean, customerId); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
										statsTagViewedDaily(finalStatsDate, dimIdBean, customerId); | 
					 | 
					 | 
										} catch (Exception e) { | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
											log.error(String.format(ProjectConstant.STATS_FAILED_PREFIX, "tagViewedDailyStatsjob", customerId, dimIdBean.getDateId(), e.getMessage())); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
											try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按日统计标签被查看次数", customerId, statsDate, e.getMessage()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												HttpClientManager.getInstance().sendAlarmMsg(content); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
											} catch (Exception ex) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												log.error("sendAlarmMsg  exception", ex); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
											} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
										} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									} | 
					 | 
					 | 
									} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} | 
					 | 
					 | 
								} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} while (!CollectionUtils.isEmpty(customerIdList) && customerIdList.size() == pageSize); | 
					 | 
					 | 
							} while (!CollectionUtils.isEmpty(customerIdList) && customerIdList.size() == pageSize); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -247,7 +267,13 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
										try { | 
					 | 
					 | 
										try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
											statsTagViewedMonthly(dimIdBean.getMonthId(), customerId); | 
					 | 
					 | 
											statsTagViewedMonthly(dimIdBean.getMonthId(), customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
										} catch (Exception e) { | 
					 | 
					 | 
										} catch (Exception e) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
											log.error("statsTagViewedMonthly exception", e); | 
					 | 
					 | 
											log.error(String.format(ProjectConstant.STATS_FAILED_PREFIX, "tagViewedMonthlyStatsjob", customerId, dimIdBean.getDateId(), e.getMessage())); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
											try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按月统计标签被查看次数", customerId, dimIdBean.getMonthId(), e.getMessage()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												HttpClientManager.getInstance().sendAlarmMsg(content); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
											} catch (Exception ex) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												log.error("sendAlarmMsg  exception", e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
											} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
										} | 
					 | 
					 | 
										} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									} | 
					 | 
					 | 
									} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} | 
					 | 
					 | 
								} | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -277,7 +303,13 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
												log.debug("start === statsTagUsedQuarterly "); | 
					 | 
					 | 
												log.debug("start === statsTagUsedQuarterly "); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
												statsTagUsedQuarterly(dimIdBean.getQuarterId(), customerId); | 
					 | 
					 | 
												statsTagUsedQuarterly(dimIdBean.getQuarterId(), customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
											} catch (Exception e) { | 
					 | 
					 | 
											} catch (Exception e) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
												log.error("statsTagUsedQuarterly exception", e); | 
					 | 
					 | 
												log.error(String.format(ProjectConstant.STATS_FAILED_PREFIX, "statsTagUsedQuarterly", customerId, dimIdBean.getQuarterId(), e.getMessage())); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
													String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按季统计标签被使用次数", customerId, dimIdBean.getQuarterId(), e.getMessage()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
													HttpClientManager.getInstance().sendAlarmMsg(content); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												} catch (Exception ex) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
													log.error("sendAlarmMsg  exception", e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
											} | 
					 | 
					 | 
											} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
										}); | 
					 | 
					 | 
										}); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
										executorService.submit(() -> { | 
					 | 
					 | 
										executorService.submit(() -> { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -285,7 +317,13 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
												log.debug("start === statsTagUsedQuarterly "); | 
					 | 
					 | 
												log.debug("start === statsTagUsedQuarterly "); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
												statsTagUsedYearly(dimIdBean.getYearId(), customerId); | 
					 | 
					 | 
												statsTagUsedYearly(dimIdBean.getYearId(), customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
											} catch (Exception e) { | 
					 | 
					 | 
											} catch (Exception e) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
												log.error("statsTagUsedYearly exception", e); | 
					 | 
					 | 
												log.error(String.format(ProjectConstant.STATS_FAILED_PREFIX, "statsTagUsedYearly", customerId, dimIdBean.getYearId(), e.getMessage())); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
													String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按年统计标签被使用次数", customerId, dimIdBean.getYearId(), e.getMessage()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
													HttpClientManager.getInstance().sendAlarmMsg(content); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												} catch (Exception ex) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
													log.error("sendAlarmMsg  exception", e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
											} | 
					 | 
					 | 
											} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
										}); | 
					 | 
					 | 
										}); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									} | 
					 | 
					 | 
									} | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -316,15 +354,29 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
												log.debug("start === statsTagViewedQuarterly "); | 
					 | 
					 | 
												log.debug("start === statsTagViewedQuarterly "); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
												statsTagViewedQuarterly(dimIdBean.getQuarterId(), customerId); | 
					 | 
					 | 
												statsTagViewedQuarterly(dimIdBean.getQuarterId(), customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
											} catch (Exception e) { | 
					 | 
					 | 
											} catch (Exception e) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
												log.error("statsTagUsedQuarterly exception", e); | 
					 | 
					 | 
												log.error(String.format(ProjectConstant.STATS_FAILED_PREFIX, "statsTagViewedQuarterly", customerId, dimIdBean.getQuarterId(), e.getMessage())); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
													String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按季统计标签被查看次数", customerId, dimIdBean.getQuarterId(), e.getMessage()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
													HttpClientManager.getInstance().sendAlarmMsg(content); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												} catch (Exception ex) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
													log.error("sendAlarmMsg  exception", e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
											} | 
					 | 
					 | 
											} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
										}); | 
					 | 
					 | 
										}); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
										executorService.submit(() -> { | 
					 | 
					 | 
										executorService.submit(() -> { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
											try { | 
					 | 
					 | 
											try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
												log.debug("start === statsTagViewedYearly "); | 
					 | 
					 | 
												log.debug("start === statsTagViewedYearly "); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
												statsTagViewedYearly(dimIdBean.getYearId(), customerId); | 
					 | 
					 | 
												statsTagViewedYearly(dimIdBean.getYearId(), customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
											} catch (Exception e) { | 
					 | 
					 | 
											} catch (Exception e) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
												log.error("statsTagUsedYearly exception", e); | 
					 | 
					 | 
												log.error(String.format(ProjectConstant.STATS_FAILED_PREFIX, "statsTagViewedQuarterly", customerId, dimIdBean.getYearId(), e.getMessage())); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
													String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按年统计标签被查看次数", customerId, dimIdBean.getYearId(), e.getMessage()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
													HttpClientManager.getInstance().sendAlarmMsg(content); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												} catch (Exception ex) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
													log.error("sendAlarmMsg  exception", e); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
												} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
											} | 
					 | 
					 | 
											} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
										}); | 
					 | 
					 | 
										}); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									} | 
					 | 
					 | 
									} | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -363,6 +415,7 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} | 
					 | 
					 | 
								} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								boolean b = factArticlePublishedDepartmentDailyService.deleteAndInsertBatch(customerId, dimIdBean.getDateId(), departmentDailyEntityMap.values()); | 
					 | 
					 | 
								boolean b = factArticlePublishedDepartmentDailyService.deleteAndInsertBatch(customerId, dimIdBean.getDateId(), departmentDailyEntityMap.values()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} catch (Exception e) { | 
					 | 
					 | 
							} catch (Exception e) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
								log.error(String.format(ProjectConstant.STATS_FAILED_PREFIX, "statsPublishedDepartmentDaily", customerId, statsDate, e.getMessage())); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								try { | 
					 | 
					 | 
								try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按日统计部门纬度文章总数", customerId, statsDate, e.getMessage()); | 
					 | 
					 | 
									String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按日统计部门纬度文章总数", customerId, statsDate, e.getMessage()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									HttpClientManager.getInstance().sendAlarmMsg(content); | 
					 | 
					 | 
									HttpClientManager.getInstance().sendAlarmMsg(content); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -436,7 +489,8 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} | 
					 | 
					 | 
								} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								boolean b = factArticlePublishedGridDailyService.deleteAndInsertBatch(customerId, dimIdBean.getDateId(), gridDailyEntityMap.values()); | 
					 | 
					 | 
								boolean b = factArticlePublishedGridDailyService.deleteAndInsertBatch(customerId, dimIdBean.getDateId(), gridDailyEntityMap.values()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} catch (Exception e) { | 
					 | 
					 | 
							} catch (Exception e) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
								log.error("statsPublishedGridDaily exception customerId:{},statsDate:{}", customerId, statsDate); | 
					 | 
					 | 
								e.printStackTrace(); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
								log.error(String.format(ProjectConstant.STATS_FAILED_PREFIX, "statsPublishedGridDaily", customerId, statsDate, e.getMessage())); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								try { | 
					 | 
					 | 
								try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按日统计网格纬度文章总数", customerId, statsDate, e.getMessage()); | 
					 | 
					 | 
									String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按日统计网格纬度文章总数", customerId, statsDate, e.getMessage()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									HttpClientManager.getInstance().sendAlarmMsg(content); | 
					 | 
					 | 
									HttpClientManager.getInstance().sendAlarmMsg(content); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -507,7 +561,7 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								boolean b = factArticlePublishedAgencyDailyService.deleteAndInsertBatch(customerId, dimIdBean.getDateId(), agencyDailyEntityMap.values()); | 
					 | 
					 | 
								boolean b = factArticlePublishedAgencyDailyService.deleteAndInsertBatch(customerId, dimIdBean.getDateId(), agencyDailyEntityMap.values()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} catch (Exception e) { | 
					 | 
					 | 
							} catch (Exception e) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								e.printStackTrace(); | 
					 | 
					 | 
								e.printStackTrace(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
								log.error("statsPublishedAgencyDaily exception,customer:{}", customerId); | 
					 | 
					 | 
								log.error(String.format(ProjectConstant.STATS_FAILED_PREFIX, "statsPublishedAgencyDaily", customerId, statsDate, e.getMessage())); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
								try { | 
					 | 
					 | 
								try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按日统计部门纬度文章总数", customerId, statsDate, e.getMessage()); | 
					 | 
					 | 
									String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按日统计部门纬度文章总数", customerId, statsDate, e.getMessage()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									HttpClientManager.getInstance().sendAlarmMsg(content); | 
					 | 
					 | 
									HttpClientManager.getInstance().sendAlarmMsg(content); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -525,7 +579,7 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						 * @param customerId | 
					 | 
					 | 
						 * @param customerId | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						 */ | 
					 | 
					 | 
						 */ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						private void statsTagUsedDaily(Date statsDate, DimIdGenerator.DimIdBean dimIdBean, String customerId) { | 
					 | 
					 | 
						private void statsTagUsedDaily(Date statsDate, DimIdGenerator.DimIdBean dimIdBean, String customerId) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
							try { | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
							//1.业务数据来源 发布时间为统计时间的
 | 
					 | 
					 | 
							//1.业务数据来源 发布时间为统计时间的
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							// 因为一个客户的发布文章数在同一天不会特别的多,所以以客户为单位查询今天发布的所有带有标签的文章  根据发布单位类型进行拆分
 | 
					 | 
					 | 
							// 因为一个客户的发布文章数在同一天不会特别的多,所以以客户为单位查询今天发布的所有带有标签的文章  根据发布单位类型进行拆分
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							//  1.1查出今天所有的文章标签 根据网格Id
 | 
					 | 
					 | 
							//  1.1查出今天所有的文章标签 根据网格Id
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -600,14 +654,7 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								finalTagUsedAgencyDailyMap.putAll(tagUsedAgencyDailySelfMap); | 
					 | 
					 | 
								finalTagUsedAgencyDailyMap.putAll(tagUsedAgencyDailySelfMap); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} | 
					 | 
					 | 
							} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							factTagUsedAgencyDailyService.deleteAndInsertBatch(customerId, dimIdBean.getDateId(), finalTagUsedAgencyDailyMap.values()); | 
					 | 
					 | 
							factTagUsedAgencyDailyService.deleteAndInsertBatch(customerId, dimIdBean.getDateId(), finalTagUsedAgencyDailyMap.values()); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
							} catch (Exception e) { | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
								try { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按日统计标签被使用次数", customerId, statsDate, e.getMessage()); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									HttpClientManager.getInstance().sendAlarmMsg(content); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} catch (Exception ex) { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									log.error("sendAlarmMsg  exception", e); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
						} | 
					 | 
					 | 
						} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						/** | 
					 | 
					 | 
						/** | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -618,7 +665,7 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						 * @param customerId | 
					 | 
					 | 
						 * @param customerId | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						 */ | 
					 | 
					 | 
						 */ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						private void statsTagViewedDaily(Date statsDate, DimIdGenerator.DimIdBean dimIdBean, String customerId) { | 
					 | 
					 | 
						private void statsTagViewedDaily(Date statsDate, DimIdGenerator.DimIdBean dimIdBean, String customerId) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
							try { | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
							//1.业务数据来源 发布时间为统计时间的
 | 
					 | 
					 | 
							//1.业务数据来源 发布时间为统计时间的
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							// 因为一个客户的发布文章数在同一天不会特别的多,所以以客户为单位查询今天发布的所有带有标签的文章  根据发布单位类型进行拆分
 | 
					 | 
					 | 
							// 因为一个客户的发布文章数在同一天不会特别的多,所以以客户为单位查询今天发布的所有带有标签的文章  根据发布单位类型进行拆分
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							//  1.1查出今天所有的文章标签 根据网格Id
 | 
					 | 
					 | 
							//  1.1查出今天所有的文章标签 根据网格Id
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -701,15 +748,6 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								finalTagUsedAgencyDailyMap.putAll(tagViewedAgencyDailySelfMap); | 
					 | 
					 | 
								finalTagUsedAgencyDailyMap.putAll(tagViewedAgencyDailySelfMap); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} | 
					 | 
					 | 
							} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							factTagViewedAgencyDailyService.deleteAndInsertBatch(customerId, dimIdBean.getDateId(), finalTagUsedAgencyDailyMap.values()); | 
					 | 
					 | 
							factTagViewedAgencyDailyService.deleteAndInsertBatch(customerId, dimIdBean.getDateId(), finalTagUsedAgencyDailyMap.values()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} catch (Exception e) { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								try { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按日统计标签被查看次数", customerId, statsDate, e.getMessage()); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									HttpClientManager.getInstance().sendAlarmMsg(content); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} catch (Exception ex) { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									log.error("sendAlarmMsg  exception", e); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						} | 
					 | 
					 | 
						} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						/** | 
					 | 
					 | 
						/** | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -719,7 +757,6 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						 * @param customerId | 
					 | 
					 | 
						 * @param customerId | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						 */ | 
					 | 
					 | 
						 */ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						private void statsTagUsedMonthly(String monthId, String customerId) { | 
					 | 
					 | 
						private void statsTagUsedMonthly(String monthId, String customerId) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							try { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							List<FactTagUsedGridDailyEntity> gridDailyList = factTagUsedGridDailyService.getTagUsedCountByMonth(customerId, monthId); | 
					 | 
					 | 
							List<FactTagUsedGridDailyEntity> gridDailyList = factTagUsedGridDailyService.getTagUsedCountByMonth(customerId, monthId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							if (!CollectionUtils.isEmpty(gridDailyList)) { | 
					 | 
					 | 
							if (!CollectionUtils.isEmpty(gridDailyList)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								List<FactTagUsedGridMonthlyEntity> gridMonthlyList = ConvertUtils.sourceToTarget(gridDailyList, FactTagUsedGridMonthlyEntity.class); | 
					 | 
					 | 
								List<FactTagUsedGridMonthlyEntity> gridMonthlyList = ConvertUtils.sourceToTarget(gridDailyList, FactTagUsedGridMonthlyEntity.class); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -735,14 +772,6 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								List<FactTagUsedAgencyMonthlyEntity> agencyMonthlyList = ConvertUtils.sourceToTarget(agencyDailyList, FactTagUsedAgencyMonthlyEntity.class); | 
					 | 
					 | 
								List<FactTagUsedAgencyMonthlyEntity> agencyMonthlyList = ConvertUtils.sourceToTarget(agencyDailyList, FactTagUsedAgencyMonthlyEntity.class); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								factTagUsedAgencyMonthlyService.deleteAndInsertByMonthId(customerId, monthId, (agencyMonthlyList)); | 
					 | 
					 | 
								factTagUsedAgencyMonthlyService.deleteAndInsertByMonthId(customerId, monthId, (agencyMonthlyList)); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} | 
					 | 
					 | 
							} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} catch (Exception e) { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								try { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按月统计标签被使用次数", customerId, monthId, e.getMessage()); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									HttpClientManager.getInstance().sendAlarmMsg(content); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} catch (Exception ex) { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									log.error("sendAlarmMsg  exception", e); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						} | 
					 | 
					 | 
						} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						/** | 
					 | 
					 | 
						/** | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -752,7 +781,7 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						 * @param customerId | 
					 | 
					 | 
						 * @param customerId | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						 */ | 
					 | 
					 | 
						 */ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						private void statsTagViewedMonthly(String monthId, String customerId) { | 
					 | 
					 | 
						private void statsTagViewedMonthly(String monthId, String customerId) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
							try { | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
							List<FactTagViewedGridDailyEntity> gridDailyList = factTagViewedGridDailyService.getTagViewedCountByMonth(customerId, monthId); | 
					 | 
					 | 
							List<FactTagViewedGridDailyEntity> gridDailyList = factTagViewedGridDailyService.getTagViewedCountByMonth(customerId, monthId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							if (!CollectionUtils.isEmpty(gridDailyList)) { | 
					 | 
					 | 
							if (!CollectionUtils.isEmpty(gridDailyList)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								List<FactTagViewedGridMonthlyEntity> gridMonthlyList = ConvertUtils.sourceToTarget(gridDailyList, FactTagViewedGridMonthlyEntity.class); | 
					 | 
					 | 
								List<FactTagViewedGridMonthlyEntity> gridMonthlyList = ConvertUtils.sourceToTarget(gridDailyList, FactTagViewedGridMonthlyEntity.class); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -764,14 +793,7 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								List<FactTagViewedAgencyMonthlyEntity> agencyMonthlyList = ConvertUtils.sourceToTarget(agencyDailyList, FactTagViewedAgencyMonthlyEntity.class); | 
					 | 
					 | 
								List<FactTagViewedAgencyMonthlyEntity> agencyMonthlyList = ConvertUtils.sourceToTarget(agencyDailyList, FactTagViewedAgencyMonthlyEntity.class); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								factTagViewedAgencyMonthlyService.deleteAndInsertByMonthId(customerId, monthId, (agencyMonthlyList)); | 
					 | 
					 | 
								factTagViewedAgencyMonthlyService.deleteAndInsertByMonthId(customerId, monthId, (agencyMonthlyList)); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} | 
					 | 
					 | 
							} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
							} catch (Exception e) { | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
								try { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按月统计标签被查看次数", customerId, monthId, e.getMessage()); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									HttpClientManager.getInstance().sendAlarmMsg(content); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} catch (Exception ex) { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									log.error("sendAlarmMsg  exception", e); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
						} | 
					 | 
					 | 
						} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						/** | 
					 | 
					 | 
						/** | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -781,7 +803,7 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						 * @param customerId | 
					 | 
					 | 
						 * @param customerId | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						 */ | 
					 | 
					 | 
						 */ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						private void statsTagUsedQuarterly(String quarterId, String customerId) { | 
					 | 
					 | 
						private void statsTagUsedQuarterly(String quarterId, String customerId) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
							try { | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
							List<FactTagUsedGridMonthlyEntity> gridMonthlyList = factTagUsedGridMonthlyService.getTagUsedCountByQuarterId(customerId, quarterId); | 
					 | 
					 | 
							List<FactTagUsedGridMonthlyEntity> gridMonthlyList = factTagUsedGridMonthlyService.getTagUsedCountByQuarterId(customerId, quarterId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							if (!CollectionUtils.isEmpty(gridMonthlyList)) { | 
					 | 
					 | 
							if (!CollectionUtils.isEmpty(gridMonthlyList)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								List<FactTagUsedGridQuarterlyEntity> gridQuarterlyList = ConvertUtils.sourceToTarget(gridMonthlyList, FactTagUsedGridQuarterlyEntity.class); | 
					 | 
					 | 
								List<FactTagUsedGridQuarterlyEntity> gridQuarterlyList = ConvertUtils.sourceToTarget(gridMonthlyList, FactTagUsedGridQuarterlyEntity.class); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -797,14 +819,7 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								List<FactTagUsedAgencyQuarterlyEntity> agencyQuarterlyList = ConvertUtils.sourceToTarget(agencyMonthlyList, FactTagUsedAgencyQuarterlyEntity.class); | 
					 | 
					 | 
								List<FactTagUsedAgencyQuarterlyEntity> agencyQuarterlyList = ConvertUtils.sourceToTarget(agencyMonthlyList, FactTagUsedAgencyQuarterlyEntity.class); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								factTagUsedAgencyQuarterlyService.deleteAndInsertByQuarterId(customerId, quarterId, agencyQuarterlyList); | 
					 | 
					 | 
								factTagUsedAgencyQuarterlyService.deleteAndInsertByQuarterId(customerId, quarterId, agencyQuarterlyList); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} | 
					 | 
					 | 
							} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
							} catch (Exception e) { | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
								try { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按季统计标签被使用次数", customerId, quarterId, e.getMessage()); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									HttpClientManager.getInstance().sendAlarmMsg(content); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} catch (Exception ex) { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									log.error("sendAlarmMsg  exception", e); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
						} | 
					 | 
					 | 
						} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						/** | 
					 | 
					 | 
						/** | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -814,7 +829,7 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						 * @param customerId | 
					 | 
					 | 
						 * @param customerId | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						 */ | 
					 | 
					 | 
						 */ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						private void statsTagViewedQuarterly(String quarterId, String customerId) { | 
					 | 
					 | 
						private void statsTagViewedQuarterly(String quarterId, String customerId) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
							try { | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
							List<FactTagViewedGridMonthlyEntity> gridMonthlyList = factTagViewedGridMonthlyService.getTagViewedCountByQuarterId(customerId, quarterId); | 
					 | 
					 | 
							List<FactTagViewedGridMonthlyEntity> gridMonthlyList = factTagViewedGridMonthlyService.getTagViewedCountByQuarterId(customerId, quarterId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							if (!CollectionUtils.isEmpty(gridMonthlyList)) { | 
					 | 
					 | 
							if (!CollectionUtils.isEmpty(gridMonthlyList)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								List<FactTagViewedGridQuarterlyEntity> gridQuarterlyList = ConvertUtils.sourceToTarget(gridMonthlyList, FactTagViewedGridQuarterlyEntity.class); | 
					 | 
					 | 
								List<FactTagViewedGridQuarterlyEntity> gridQuarterlyList = ConvertUtils.sourceToTarget(gridMonthlyList, FactTagViewedGridQuarterlyEntity.class); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -826,14 +841,7 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								List<FactTagViewedAgencyQuarterlyEntity> agencyQuarterlyList = ConvertUtils.sourceToTarget(agencyMonthlyList, FactTagViewedAgencyQuarterlyEntity.class); | 
					 | 
					 | 
								List<FactTagViewedAgencyQuarterlyEntity> agencyQuarterlyList = ConvertUtils.sourceToTarget(agencyMonthlyList, FactTagViewedAgencyQuarterlyEntity.class); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								factTagViewedAgencyQuarterlyService.deleteAndInsertByQuarterId(customerId, quarterId, agencyQuarterlyList); | 
					 | 
					 | 
								factTagViewedAgencyQuarterlyService.deleteAndInsertByQuarterId(customerId, quarterId, agencyQuarterlyList); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} | 
					 | 
					 | 
							} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
							} catch (Exception e) { | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
								try { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按季统计标签被查看次数", customerId, quarterId, e.getMessage()); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									HttpClientManager.getInstance().sendAlarmMsg(content); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} catch (Exception ex) { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									log.error("sendAlarmMsg  exception", e); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
						} | 
					 | 
					 | 
						} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						/** | 
					 | 
					 | 
						/** | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -843,7 +851,7 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						 * @param customerId | 
					 | 
					 | 
						 * @param customerId | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						 */ | 
					 | 
					 | 
						 */ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						private void statsTagUsedYearly(String yearId, String customerId) { | 
					 | 
					 | 
						private void statsTagUsedYearly(String yearId, String customerId) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
							try { | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
							List<FactTagUsedGridMonthlyEntity> gridMonthlyList = factTagUsedGridMonthlyService.getTagUsedCountByYearId(customerId, yearId); | 
					 | 
					 | 
							List<FactTagUsedGridMonthlyEntity> gridMonthlyList = factTagUsedGridMonthlyService.getTagUsedCountByYearId(customerId, yearId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							if (!CollectionUtils.isEmpty(gridMonthlyList)) { | 
					 | 
					 | 
							if (!CollectionUtils.isEmpty(gridMonthlyList)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								List<FactTagUsedGridYearlyEntity> gridYearlyList = ConvertUtils.sourceToTarget(gridMonthlyList, FactTagUsedGridYearlyEntity.class); | 
					 | 
					 | 
								List<FactTagUsedGridYearlyEntity> gridYearlyList = ConvertUtils.sourceToTarget(gridMonthlyList, FactTagUsedGridYearlyEntity.class); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -859,14 +867,7 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								List<FactTagUsedAgencyYearlyEntity> agencyYearlyList = ConvertUtils.sourceToTarget(agencyMonthlyList, FactTagUsedAgencyYearlyEntity.class); | 
					 | 
					 | 
								List<FactTagUsedAgencyYearlyEntity> agencyYearlyList = ConvertUtils.sourceToTarget(agencyMonthlyList, FactTagUsedAgencyYearlyEntity.class); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								factTagUsedAgencyYearlyService.deleteAndInsertByYearId(customerId, yearId, agencyYearlyList); | 
					 | 
					 | 
								factTagUsedAgencyYearlyService.deleteAndInsertByYearId(customerId, yearId, agencyYearlyList); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} | 
					 | 
					 | 
							} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
							} catch (Exception e) { | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
								try { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按年统计标签被使用次数", customerId, yearId, e.getMessage()); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									HttpClientManager.getInstance().sendAlarmMsg(content); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} catch (Exception ex) { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									log.error("sendAlarmMsg  exception", e); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
						} | 
					 | 
					 | 
						} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						/** | 
					 | 
					 | 
						/** | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -877,7 +878,7 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						 */ | 
					 | 
					 | 
						 */ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						private void statsTagViewedYearly(String yearId, String customerId) { | 
					 | 
					 | 
						private void statsTagViewedYearly(String yearId, String customerId) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
							try { | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
							List<FactTagViewedGridMonthlyEntity> gridMonthlyList = factTagViewedGridMonthlyService.getTagViewedCountByYearId(customerId, yearId); | 
					 | 
					 | 
							List<FactTagViewedGridMonthlyEntity> gridMonthlyList = factTagViewedGridMonthlyService.getTagViewedCountByYearId(customerId, yearId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							if (!CollectionUtils.isEmpty(gridMonthlyList)) { | 
					 | 
					 | 
							if (!CollectionUtils.isEmpty(gridMonthlyList)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								List<FactTagViewedGridYearlyEntity> gridYearlyList = ConvertUtils.sourceToTarget(gridMonthlyList, FactTagViewedGridYearlyEntity.class); | 
					 | 
					 | 
								List<FactTagViewedGridYearlyEntity> gridYearlyList = ConvertUtils.sourceToTarget(gridMonthlyList, FactTagViewedGridYearlyEntity.class); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -888,14 +889,7 @@ public class StatsPublicityServiceImpl implements StatsPublicityService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								List<FactTagViewedAgencyYearlyEntity> agencyYearlyList = ConvertUtils.sourceToTarget(agencyMonthlyList, FactTagViewedAgencyYearlyEntity.class); | 
					 | 
					 | 
								List<FactTagViewedAgencyYearlyEntity> agencyYearlyList = ConvertUtils.sourceToTarget(agencyMonthlyList, FactTagViewedAgencyYearlyEntity.class); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								factTagViewedAgencyYearlyService.deleteAndInsertByYearId(customerId, yearId, agencyYearlyList); | 
					 | 
					 | 
								factTagViewedAgencyYearlyService.deleteAndInsertByYearId(customerId, yearId, agencyYearlyList); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} | 
					 | 
					 | 
							} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
							} catch (Exception e) { | 
					 | 
					 | 
					
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
								try { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									String content = String.format(ProjectConstant.EXE_FAILED_MSG, "按年统计标签被查看次数", customerId, yearId, e.getMessage()); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									HttpClientManager.getInstance().sendAlarmMsg(content); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} catch (Exception ex) { | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
									log.error("sendAlarmMsg  exception", e); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
								} | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
							} | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
						} | 
					 | 
					 | 
						} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
						private void setTagUsedData2ParentAgency(Map<String, DimAgencyEntity> dimAgencyEntityMap, Map<String, FactTagUsedAgencyDailyEntity> agencyDailyEntityMap, FactTagUsedAgencyDailyEntity currentEntity, DimIdGenerator.DimIdBean dimIdBean) { | 
					 | 
					 | 
						private void setTagUsedData2ParentAgency(Map<String, DimAgencyEntity> dimAgencyEntityMap, Map<String, FactTagUsedAgencyDailyEntity> agencyDailyEntityMap, FactTagUsedAgencyDailyEntity currentEntity, DimIdGenerator.DimIdBean dimIdBean) { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |