| 
						
						
							
								
							
						
						
					 | 
					@ -71,7 +71,7 @@ public class StatsProjectServiceImpl implements StatsProjectService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            if (!CollectionUtils.isEmpty(customerIdList)) { | 
					 | 
					 | 
					            if (!CollectionUtils.isEmpty(customerIdList)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                for (String customerId : customerIdList) { | 
					 | 
					 | 
					                for (String customerId : customerIdList) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    try { | 
					 | 
					 | 
					                    try { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					                        log.debug("for循环统计机关-项目-日月数据,当前统计的客户Id:" + customerId); | 
					 | 
					 | 
					                        log.info("for循环统计机关-项目-日月数据,当前统计的客户Id:" + customerId); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					                        //遍历统计每一个客户数据
 | 
					 | 
					 | 
					                        //遍历统计每一个客户数据
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                        customerAgencyStats(customerId); | 
					 | 
					 | 
					                        customerAgencyStats(customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    } catch (Exception e) { | 
					 | 
					 | 
					                    } catch (Exception e) { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -93,13 +93,13 @@ public class StatsProjectServiceImpl implements StatsProjectService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        DimIdGenerator.DimIdBean dimId = DimIdGenerator.getDimIdBean(date); | 
					 | 
					 | 
					        DimIdGenerator.DimIdBean dimId = DimIdGenerator.getDimIdBean(date); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //2:根据客户Id查询机关维度表数据
 | 
					 | 
					 | 
					        //2:根据客户Id查询机关维度表数据
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        log.debug("StatsProjectServiceImpl.customerAgencyStats-根据客户Id查询机关维度数据,当前客户Id:" + customerId); | 
					 | 
					 | 
					        log.info("StatsProjectServiceImpl.customerAgencyStats-根据客户Id查询机关维度数据,对应客户Id:" + customerId); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        DimAgencyDTO dimAgencyDTO = new DimAgencyDTO(); | 
					 | 
					 | 
					        DimAgencyDTO dimAgencyDTO = new DimAgencyDTO(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        dimAgencyDTO.setCustomerId(customerId); | 
					 | 
					 | 
					        dimAgencyDTO.setCustomerId(customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        List<DimAgencyDTO> dimAgencyList = dimAgencyService.getDimAgencyList(dimAgencyDTO); | 
					 | 
					 | 
					        List<DimAgencyDTO> dimAgencyList = dimAgencyService.getDimAgencyList(dimAgencyDTO); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //3:根据客户Id查询项目业务表已结案数据(查询传入日期及之前的数据)
 | 
					 | 
					 | 
					        //3:根据客户Id查询项目业务表已结案数据(查询传入日期及之前的数据)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        log.debug("StatsProjectServiceImpl.customerAgencyStats-根据客户Id查询项目业务表结案数据,当前客户Id:"+customerId); | 
					 | 
					 | 
					        log.info("StatsProjectServiceImpl.customerAgencyStats-根据客户Id查询项目业务表已结案数据,对应客户Id:"+customerId); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        ProjectEntity projectEntity = new ProjectEntity(); | 
					 | 
					 | 
					        ProjectEntity projectEntity = new ProjectEntity(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        projectEntity.setCustomerId(customerId); | 
					 | 
					 | 
					        projectEntity.setCustomerId(customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        projectEntity.setCreatedTime(date); | 
					 | 
					 | 
					        projectEntity.setCreatedTime(date); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -107,18 +107,18 @@ public class StatsProjectServiceImpl implements StatsProjectService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        List<ProjectEntity> projectList = projectService.getProjectList(projectEntity); | 
					 | 
					 | 
					        List<ProjectEntity> projectList = projectService.getProjectList(projectEntity); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //4:查询项目处理进展表中有效数据(创建日期截取yyyy-mm-dd格式字段值)(查询传入日期及之前的数据)
 | 
					 | 
					 | 
					        //4:查询项目处理进展表中有效数据(创建日期截取yyyy-mm-dd格式字段值)(查询传入日期及之前的数据)
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        log.debug("StatsProjectServiceImpl.customerAgencyStats-根据客户Id查询项目进展表业务数据,当前客户Id:"+customerId); | 
					 | 
					 | 
					        log.info("StatsProjectServiceImpl.customerAgencyStats-根据客户Id查询项目进展表业务数据,对应客户Id:"+customerId); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        List<ProjectProcessEntity> processList = projectProcessService.getProcessList(projectEntity); | 
					 | 
					 | 
					        List<ProjectProcessEntity> processList = projectProcessService.getProcessList(projectEntity); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //5:机关层级日月统计
 | 
					 | 
					 | 
					        //5:机关层级日月统计
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if (null != dimAgencyList && dimAgencyList.size() > NumConstant.ZERO) { | 
					 | 
					 | 
					        if (null != dimAgencyList && dimAgencyList.size() > NumConstant.ZERO) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            //5.1:执行机关日数据统计
 | 
					 | 
					 | 
					            //5.1:执行机关日数据统计
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            log.debug("StatsProjectServiceImpl.customerAgencyStats-开始执行机关日统计方法,方法名:agencyDateProjectStats,客户Id:"+customerId); | 
					 | 
					 | 
					            log.info("StatsProjectServiceImpl.customerAgencyStats-开始执行机关日统计方法,方法名:agencyDateProjectStats,客户Id:"+customerId); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					            agencyDateProjectStats(customerId, dimId, dimAgencyList, projectList, processList); | 
					 | 
					 | 
					            agencyDateProjectStats(customerId, dimId, dimAgencyList, projectList, processList); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            //5.2:执行机关月数据统计
 | 
					 | 
					 | 
					            //5.2:执行机关月数据统计
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            //if (Calendar.getInstance().get(Calendar.DATE) == 1) {
 | 
					 | 
					 | 
					            //if (Calendar.getInstance().get(Calendar.DATE) == 1) {
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            log.debug("StatsProjectServiceImpl.customerAgencyStats-开始执行机关月统计方法,方法名:agencyMonthProjectStats,客户Id:"+customerId); | 
					 | 
					 | 
					            log.info("StatsProjectServiceImpl.customerAgencyStats-开始执行机关月统计方法,方法名:agencyMonthProjectStats,客户Id:"+customerId); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					            agencyMonthProjectStats(customerId, dimId, dimAgencyList); | 
					 | 
					 | 
					            agencyMonthProjectStats(customerId, dimId, dimAgencyList); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            //}
 | 
					 | 
					 | 
					            //}
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -252,9 +252,11 @@ public class StatsProjectServiceImpl implements StatsProjectService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            FactAgencyProjectDailyEntity delEntity = new FactAgencyProjectDailyEntity(); | 
					 | 
					 | 
					            FactAgencyProjectDailyEntity delEntity = new FactAgencyProjectDailyEntity(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            delEntity.setCustomerId(customerId); | 
					 | 
					 | 
					            delEntity.setCustomerId(customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            delEntity.setDateId(dimId.getDateId()); | 
					 | 
					 | 
					            delEntity.setDateId(dimId.getDateId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.info("StatsProjectServiceImpl.agencyDateProjectStats-根据客户Id、日维度Id批量删除机关项目日统计表数据,对应客户Id:"+customerId+",日维度Id:"+dimId.getDateId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            factAgencyProjectDailyService.delDateProject(delEntity); | 
					 | 
					 | 
					            factAgencyProjectDailyService.delDateProject(delEntity); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            //2.2:批量保存机关日统计数据
 | 
					 | 
					 | 
					            //2.2:批量保存机关日统计数据
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.info("StatsProjectServiceImpl.agencyDateProjectStats-批量新增机关项目日统计表数据,对应客户Id:"+customerId+",日维度Id:"+dimId.getDateId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            factAgencyProjectDailyService.insertBatch(projectDateEntityList); | 
					 | 
					 | 
					            factAgencyProjectDailyService.insertBatch(projectDateEntityList); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -329,9 +331,11 @@ public class StatsProjectServiceImpl implements StatsProjectService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            FactAgencyProjectMonthlyEntity delEntity = new FactAgencyProjectMonthlyEntity(); | 
					 | 
					 | 
					            FactAgencyProjectMonthlyEntity delEntity = new FactAgencyProjectMonthlyEntity(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            delEntity.setCustomerId(customerId); | 
					 | 
					 | 
					            delEntity.setCustomerId(customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            delEntity.setMonthId(dimId.getMonthId()); | 
					 | 
					 | 
					            delEntity.setMonthId(dimId.getMonthId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.info("StatsProjectServiceImpl.agencyMonthProjectStats-根据客户Id、月维度Id批量删除机关项目月统计表数据,对应客户Id:"+customerId+",月维度Id:"+dimId.getMonthId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            factAgencyProjectMonthlyService.delMonthProject(delEntity); | 
					 | 
					 | 
					            factAgencyProjectMonthlyService.delMonthProject(delEntity); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            //3.2:批量保存机关月统计数据
 | 
					 | 
					 | 
					            //3.2:批量保存机关月统计数据
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.info("StatsProjectServiceImpl.agencyMonthProjectStats-批量新增机关项目月统计表数据,对应客户Id:"+customerId+",月维度Id:"+dimId.getMonthId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            factAgencyProjectMonthlyService.insertBatch(monthlyEntityList); | 
					 | 
					 | 
					            factAgencyProjectMonthlyService.insertBatch(monthlyEntityList); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -353,6 +357,7 @@ public class StatsProjectServiceImpl implements StatsProjectService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            if (!CollectionUtils.isEmpty(customerIdList)) { | 
					 | 
					 | 
					            if (!CollectionUtils.isEmpty(customerIdList)) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                for (String customerId : customerIdList) { | 
					 | 
					 | 
					                for (String customerId : customerIdList) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    try { | 
					 | 
					 | 
					                    try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                        log.info("for循环统计网格-项目-日月数据,当前统计的客户Id:" + customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                        //遍历统计每一个客户数据
 | 
					 | 
					 | 
					                        //遍历统计每一个客户数据
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                        customerGridStats(customerId); | 
					 | 
					 | 
					                        customerGridStats(customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    } catch (Exception e) { | 
					 | 
					 | 
					                    } catch (Exception e) { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -374,9 +379,11 @@ public class StatsProjectServiceImpl implements StatsProjectService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        DimIdGenerator.DimIdBean dimId = DimIdGenerator.getDimIdBean(date); | 
					 | 
					 | 
					        DimIdGenerator.DimIdBean dimId = DimIdGenerator.getDimIdBean(date); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //2:根据客户Id查询网格维度表数据
 | 
					 | 
					 | 
					        //2:根据客户Id查询网格维度表数据
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        log.info("StatsProjectServiceImpl.customerGridStats-根据客户Id查询网格维度数据,对应客户Id:" + customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        List<DimGridEntity> dimGridList = dimGridService.getGridListByCustomerId(customerId); | 
					 | 
					 | 
					        List<DimGridEntity> dimGridList = dimGridService.getGridListByCustomerId(customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //3:根据客户Id查询项目业务表已结案数据(查询传入日期及之前的数据)
 | 
					 | 
					 | 
					        //3:根据客户Id查询项目业务表已结案数据(查询传入日期及之前的数据)
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        log.info("StatsProjectServiceImpl.customerGridStats-根据客户Id查询项目业务表已结案数据,对应客户Id:"+customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        ProjectEntity projectEntity = new ProjectEntity(); | 
					 | 
					 | 
					        ProjectEntity projectEntity = new ProjectEntity(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        projectEntity.setCustomerId(customerId); | 
					 | 
					 | 
					        projectEntity.setCustomerId(customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        projectEntity.setCreatedTime(date); | 
					 | 
					 | 
					        projectEntity.setCreatedTime(date); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -384,15 +391,18 @@ public class StatsProjectServiceImpl implements StatsProjectService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        List<ProjectEntity> projectList = projectService.getProjectList(projectEntity); | 
					 | 
					 | 
					        List<ProjectEntity> projectList = projectService.getProjectList(projectEntity); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //4:查询项目处理进展表中有效数据(创建日期截取yyyy-mm-dd格式字段值)(查询传入日期及之前的数据)
 | 
					 | 
					 | 
					        //4:查询项目处理进展表中有效数据(创建日期截取yyyy-mm-dd格式字段值)(查询传入日期及之前的数据)
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        log.info("StatsProjectServiceImpl.customerGridStats-根据客户Id查询项目进展表业务数据,对应客户Id:"+customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        List<ProjectProcessEntity> processList = projectProcessService.getProcessList(projectEntity); | 
					 | 
					 | 
					        List<ProjectProcessEntity> processList = projectProcessService.getProcessList(projectEntity); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        //5:网格层级日月统计
 | 
					 | 
					 | 
					        //5:网格层级日月统计
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if (null != dimGridList && dimGridList.size() > NumConstant.ZERO) { | 
					 | 
					 | 
					        if (null != dimGridList && dimGridList.size() > NumConstant.ZERO) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            //5.1:执行网格日数据统计
 | 
					 | 
					 | 
					            //5.1:执行网格日数据统计
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.info("StatsProjectServiceImpl.customerGridStats-开始执行机关日统计方法,方法名:gridDateProjectStats,客户Id:"+customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            gridDateProjectStats(customerId, dimId, dimGridList, projectList, processList); | 
					 | 
					 | 
					            gridDateProjectStats(customerId, dimId, dimGridList, projectList, processList); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            //5.2:执行网格月数据统计
 | 
					 | 
					 | 
					            //5.2:执行网格月数据统计
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            //if (Calendar.getInstance().get(Calendar.DATE) == 1) {
 | 
					 | 
					 | 
					            //if (Calendar.getInstance().get(Calendar.DATE) == 1) {
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.info("StatsProjectServiceImpl.customerGridStats-开始执行机关月统计方法,方法名:gridMonthProjectStats,客户Id:"+customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            gridMonthProjectStats(customerId, dimId, dimGridList); | 
					 | 
					 | 
					            gridMonthProjectStats(customerId, dimId, dimGridList); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            //}
 | 
					 | 
					 | 
					            //}
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -527,9 +537,11 @@ public class StatsProjectServiceImpl implements StatsProjectService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            FactAgencyProjectDailyEntity delEntity = new FactAgencyProjectDailyEntity(); | 
					 | 
					 | 
					            FactAgencyProjectDailyEntity delEntity = new FactAgencyProjectDailyEntity(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            delEntity.setCustomerId(customerId); | 
					 | 
					 | 
					            delEntity.setCustomerId(customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            delEntity.setDateId(dimId.getDateId()); | 
					 | 
					 | 
					            delEntity.setDateId(dimId.getDateId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.info("StatsProjectServiceImpl.gridDateProjectStats-根据客户Id、日维度Id批量删除网格项目日统计表数据,对应客户Id:"+customerId+",日维度Id:"+dimId.getDateId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            factGridProjectDailyService.delDateProject(delEntity); | 
					 | 
					 | 
					            factGridProjectDailyService.delDateProject(delEntity); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            //3.2:批量保存网格日统计数据
 | 
					 | 
					 | 
					            //3.2:批量保存网格日统计数据
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.info("StatsProjectServiceImpl.gridDateProjectStats-批量新增网格项目日统计表数据,对应客户Id:"+customerId+",日维度Id:"+dimId.getDateId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            factGridProjectDailyService.insertBatch(gridDateEntityList); | 
					 | 
					 | 
					            factGridProjectDailyService.insertBatch(gridDateEntityList); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -604,9 +616,11 @@ public class StatsProjectServiceImpl implements StatsProjectService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            FactAgencyProjectMonthlyEntity delEntity = new FactAgencyProjectMonthlyEntity(); | 
					 | 
					 | 
					            FactAgencyProjectMonthlyEntity delEntity = new FactAgencyProjectMonthlyEntity(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            delEntity.setCustomerId(customerId); | 
					 | 
					 | 
					            delEntity.setCustomerId(customerId); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            delEntity.setMonthId(dimId.getMonthId()); | 
					 | 
					 | 
					            delEntity.setMonthId(dimId.getMonthId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.info("StatsProjectServiceImpl.gridMonthProjectStats-根据客户Id、月维度Id批量删除网格项目月统计表数据,对应客户Id:"+customerId+",月维度Id:"+dimId.getMonthId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            factGridProjectMonthlyService.delMonthProject(delEntity); | 
					 | 
					 | 
					            factGridProjectMonthlyService.delMonthProject(delEntity); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            //3.2:批量保存机关月统计数据
 | 
					 | 
					 | 
					            //3.2:批量保存机关月统计数据
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            log.info("StatsProjectServiceImpl.gridMonthProjectStats-批量新增网格项目月统计表数据,对应客户Id:"+customerId+",月维度Id:"+dimId.getMonthId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            factGridProjectMonthlyService.insertBatch(monthlyEntityList); | 
					 | 
					 | 
					            factGridProjectMonthlyService.insertBatch(monthlyEntityList); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -622,7 +636,7 @@ public class StatsProjectServiceImpl implements StatsProjectService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        try { | 
					 | 
					 | 
					        try { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); | 
					 | 
					 | 
					            DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            Calendar calendar = Calendar.getInstance(); | 
					 | 
					 | 
					            Calendar calendar = Calendar.getInstance(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            calendar.set(Calendar.HOUR_OF_DAY, -24); | 
					 | 
					 | 
					            //calendar.set(Calendar.HOUR_OF_DAY, -24);
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					            String str = sdf.format(calendar.getTime()); | 
					 | 
					 | 
					            String str = sdf.format(calendar.getTime()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            date = sdf.parse(str); | 
					 | 
					 | 
					            date = sdf.parse(str); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } catch (Exception e) { | 
					 | 
					 | 
					        } catch (Exception e) { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |