|  |  | @ -205,17 +205,20 @@ public class ScreenWorkRecordOrgDailyServiceImpl extends BaseServiceImpl<ScreenW | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         //2.查询当前月过去12个月份
 | 
			
		
	
		
			
				
					|  |  |  |         Map<String, String> map = dateUtils.getXpro(); | 
			
		
	
		
			
				
					|  |  |  |         Map<String, String> map = dateUtils.getXproSub(); | 
			
		
	
		
			
				
					|  |  |  |         resultDTO.setXAxis(map.values().stream().collect(Collectors.toList())); | 
			
		
	
		
			
				
					|  |  |  |         List<String> monthIdList = map.keySet().stream().collect(Collectors.toList()); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         //3-1.查询当前组织及所有下级过去12个月份某项数据所有资源的统计数据
 | 
			
		
	
		
			
				
					|  |  |  |         DateTimeFormatter fmt = DateTimeFormatter.ofPattern("yyyyMM"); | 
			
		
	
		
			
				
					|  |  |  |         LocalDate today = LocalDate.now(); | 
			
		
	
		
			
				
					|  |  |  |         formDTO.setStartMonth(today.minusMonths(NumConstant.THIRTEEN).format(fmt)); | 
			
		
	
		
			
				
					|  |  |  |         formDTO.setEndMonth(today.minusMonths(NumConstant.ONE).format(fmt)); | 
			
		
	
		
			
				
					|  |  |  |         formDTO.setStartMonth(monthIdList.get(NumConstant.ZERO)); | 
			
		
	
		
			
				
					|  |  |  |         formDTO.setEndMonth(monthIdList.get(NumConstant.ELEVEN)); | 
			
		
	
		
			
				
					|  |  |  |         List<WorkRecordTrendResultDTO.SeriesResultDTO> list = screenWorkRecordOrgMonthlyDao.selectMonthList(formDTO); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         /*log.info("legendList:"+ JSON.toJSONString(legendList,true)); | 
			
		
	
		
			
				
					|  |  |  |         log.info("xAxis:"+JSON.toJSONString(resultDTO.getXAxis(),true)); | 
			
		
	
		
			
				
					|  |  |  |         log.info("monthIdList:"+JSON.toJSONString(monthIdList,true)); | 
			
		
	
		
			
				
					|  |  |  |         log.info("startMonth:"+formDTO.getStartMonth()+";endMonth="+formDTO.getEndMonth());*/ | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         //3-2.遍历封装数据并返回
 | 
			
		
	
		
			
				
					|  |  |  |         LinkedList<WorkRecordTrendResultDTO.SeriesResultDTO> seriesList = new LinkedList<>(); | 
			
		
	
		
			
				
					|  |  |  |         //按资源类型封装每一个资源类型对应的过去12个月的汇总数据,某个月份没有数据的补0
 | 
			
		
	
	
		
			
				
					|  |  | @ -253,8 +256,9 @@ public class ScreenWorkRecordOrgDailyServiceImpl extends BaseServiceImpl<ScreenW | 
			
		
	
		
			
				
					|  |  |  |     public VoluntaryServiceTrendResultDTO voluntaryServiceTrend(VoluntaryServiceTrendFormDTO formDTO) { | 
			
		
	
		
			
				
					|  |  |  |         VoluntaryServiceTrendResultDTO resultDTO = new VoluntaryServiceTrendResultDTO(); | 
			
		
	
		
			
				
					|  |  |  |         //近12个月的monthId集合,["202002","202003","202004","202005","202006","202007","202008","202009","202010","202011","202012","202101"]
 | 
			
		
	
		
			
				
					|  |  |  |         //截止到上个月
 | 
			
		
	
		
			
				
					|  |  |  |         List<String> monthIdList = com.epmet.commons.tools.utils.DateUtils.getMonthIdList(formDTO.getEndMonthId(), NumConstant.ELEVEN); | 
			
		
	
		
			
				
					|  |  |  |         // log.info(JSON.toJSONString(monthIdList));
 | 
			
		
	
		
			
				
					|  |  |  |         log.info(JSON.toJSONString(monthIdList)); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |         AgencyInfoDTO agencyInfoDTO = agencyService.getAgencyInfoDTO(formDTO.getAreaCode(), formDTO.getAgencyId()); | 
			
		
	
		
			
				
					|  |  |  |         List<String> orgIds = new ArrayList<>(); | 
			
		
	
	
		
			
				
					|  |  | 
 |