|  |  | @ -151,39 +151,35 @@ public class KpiMetaDataServiceImpl extends BaseServiceImpl<KpiMetaDataDao, KpiM | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |     @Override | 
			
		
	
		
			
				
					|  |  |  |     public void createEvaluationData() { | 
			
		
	
		
			
				
					|  |  |  |         //查询sql入参
 | 
			
		
	
		
			
				
					|  |  |  |         //月
 | 
			
		
	
		
			
				
					|  |  |  |         KpiEventEvaluationFromDTO monthFromDto; | 
			
		
	
		
			
				
					|  |  |  |         //季度
 | 
			
		
	
		
			
				
					|  |  |  |         KpiEventEvaluationFromDTO quarterFromDto; | 
			
		
	
		
			
				
					|  |  |  |         // 年
 | 
			
		
	
		
			
				
					|  |  |  |         KpiEventEvaluationFromDTO yearFromDto; | 
			
		
	
		
			
				
					|  |  |  |         //统计月
 | 
			
		
	
		
			
				
					|  |  |  |         //取本月第一天
 | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         // 本年本月
 | 
			
		
	
		
			
				
					|  |  |  |         YearMonth now = YearMonth.now(); | 
			
		
	
		
			
				
					|  |  |  |         LocalDate startTime = now.minusMonths(NumConstant.ONE).atDay(NumConstant.ONE); | 
			
		
	
		
			
				
					|  |  |  |         LocalDate endTime = now.atDay(NumConstant.ONE); | 
			
		
	
		
			
				
					|  |  |  |         Date endTimeDate = LocalDateUtils.localDateToDate(startTime); | 
			
		
	
		
			
				
					|  |  |  |         //按月统计
 | 
			
		
	
		
			
				
					|  |  |  |         int nowMonth = now.getMonthValue(); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         monthFromDto = new KpiEventEvaluationFromDTO(); | 
			
		
	
		
			
				
					|  |  |  |         // 月统计
 | 
			
		
	
		
			
				
					|  |  |  |         LocalDate startTime = now.minusMonths(NumConstant.ONE).atDay(NumConstant.ONE); | 
			
		
	
		
			
				
					|  |  |  |         LocalDate endTime = now.minusMonths(NumConstant.ONE).atEndOfMonth(); | 
			
		
	
		
			
				
					|  |  |  |         // 组装参数
 | 
			
		
	
		
			
				
					|  |  |  |         KpiEventEvaluationFromDTO monthFromDto= new KpiEventEvaluationFromDTO(); | 
			
		
	
		
			
				
					|  |  |  |         monthFromDto.setStartTime(LocalDateUtils.localDateToDate(startTime)); | 
			
		
	
		
			
				
					|  |  |  |         monthFromDto.setEndTime(LocalDateUtils.localDateToDate(endTime)); | 
			
		
	
		
			
				
					|  |  |  |         monthFromDto.setStartTime(endTimeDate); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         // 按照季度
 | 
			
		
	
		
			
				
					|  |  |  |         int nowMonth = now.getMonthValue(); | 
			
		
	
		
			
				
					|  |  |  |         // 上个季度第一天
 | 
			
		
	
		
			
				
					|  |  |  |         LocalDate lastQuarter = now.minusMonths(NumConstant.THREE).atDay(NumConstant.ONE); | 
			
		
	
		
			
				
					|  |  |  |         Date startQuarterDate = LocalDateUtils.localDateToDate(lastQuarter); | 
			
		
	
		
			
				
					|  |  |  |         quarterFromDto = new KpiEventEvaluationFromDTO(); | 
			
		
	
		
			
				
					|  |  |  |         quarterFromDto.setStartTime(startQuarterDate); | 
			
		
	
		
			
				
					|  |  |  |         quarterFromDto.setEndTime(endTimeDate); | 
			
		
	
		
			
				
					|  |  |  |         // 年统计
 | 
			
		
	
		
			
				
					|  |  |  |         // 上个季度第一天
 | 
			
		
	
		
			
				
					|  |  |  |         LocalDate lastYear = now.minusYears(NumConstant.ONE).atDay(NumConstant.ONE); | 
			
		
	
		
			
				
					|  |  |  |         yearFromDto = new KpiEventEvaluationFromDTO(); | 
			
		
	
		
			
				
					|  |  |  |         yearFromDto.setStartTime(LocalDateUtils.localDateToDate(lastYear)); | 
			
		
	
		
			
				
					|  |  |  |         yearFromDto.setEndTime(endTimeDate); | 
			
		
	
		
			
				
					|  |  |  |         // 季度统计
 | 
			
		
	
		
			
				
					|  |  |  |         LocalDate startOfLastQuarter = now.minusMonths(NumConstant.THREE).atDay(NumConstant.ONE); | 
			
		
	
		
			
				
					|  |  |  |         LocalDate endOfLastQuarter = now.minusMonths(NumConstant.ONE).atEndOfMonth(); | 
			
		
	
		
			
				
					|  |  |  |         // 组装参数
 | 
			
		
	
		
			
				
					|  |  |  |         KpiEventEvaluationFromDTO quarterFromDto = new KpiEventEvaluationFromDTO(); | 
			
		
	
		
			
				
					|  |  |  |         quarterFromDto.setStartTime(LocalDateUtils.localDateToDate(startOfLastQuarter)); | 
			
		
	
		
			
				
					|  |  |  |         monthFromDto.setEndTime(LocalDateUtils.localDateToDate(endOfLastQuarter)); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         // 年度统计
 | 
			
		
	
		
			
				
					|  |  |  |         LocalDate startOfLastYear = now.minusYears(NumConstant.ONE).atDay(NumConstant.ONE); | 
			
		
	
		
			
				
					|  |  |  |         LocalDate endOfLastYear = now.minusMonths(NumConstant.ONE).atEndOfMonth(); | 
			
		
	
		
			
				
					|  |  |  |         // 组装参数
 | 
			
		
	
		
			
				
					|  |  |  |         KpiEventEvaluationFromDTO yearFromDto  = new KpiEventEvaluationFromDTO(); | 
			
		
	
		
			
				
					|  |  |  |         yearFromDto.setStartTime(LocalDateUtils.localDateToDate(startOfLastYear)); | 
			
		
	
		
			
				
					|  |  |  |         yearFromDto.setEndTime(LocalDateUtils.localDateToDate(endOfLastYear)); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         // 页容量
 | 
			
		
	
		
			
				
					|  |  |  |         int pageSize = NumConstant.TEN; | 
			
		
	
		
			
				
					|  |  |  |         // 页码
 | 
			
		
	
	
		
			
				
					|  |  | @ -214,4 +210,5 @@ public class KpiMetaDataServiceImpl extends BaseServiceImpl<KpiMetaDataDao, KpiM | 
			
		
	
		
			
				
					|  |  |  |             gridList = deptUtils.getDeptIdList(OrganizationTypeConstant.ORG_TYPE_GRID_PARTY, pageSize, pageIndex); | 
			
		
	
		
			
				
					|  |  |  |         } while (CollUtil.isNotEmpty(gridList)); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  | } |