| 
						
						
							
								
							
						
						
					 | 
					@ -44,6 +44,8 @@ public class RemindServiceImpl implements RemindService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Autowired | 
					 | 
					 | 
					    @Autowired | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    private EpmetUserOpenFeignClient epmetUserOpenFeignClient; | 
					 | 
					 | 
					    private EpmetUserOpenFeignClient epmetUserOpenFeignClient; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    @Autowired | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    private GovProjectOpenFeignClient govProjectOpenFeignClient; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Override | 
					 | 
					 | 
					    @Override | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    public RedDotResultDTO queryGridRedDot(RedDotFormDTO formDTO) { | 
					 | 
					 | 
					    public RedDotResultDTO queryGridRedDot(RedDotFormDTO formDTO) { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -217,12 +219,11 @@ public class RemindServiceImpl implements RemindService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        RedDotResultDTO redDotResultDTO = new RedDotResultDTO(); | 
					 | 
					 | 
					        RedDotResultDTO redDotResultDTO = new RedDotResultDTO(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        redDotResultDTO.setOtherGridRedDot(false); | 
					 | 
					 | 
					        redDotResultDTO.setOtherGridRedDot(false); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        redDotResultDTO.setFunctionList(Collections.EMPTY_LIST); | 
					 | 
					 | 
					        redDotResultDTO.setFunctionList(Collections.EMPTY_LIST); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					
 | 
					 | 
					 | 
					        List<String> functionList = new ArrayList<>(); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        List<RedDotDetialDTO> details = new ArrayList<>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        Result<List<CustomerGridByUserIdResultDTO>> govOrgResult = govOrgFeignClient.getMyGrids(formDTO.getStaffId()); | 
					 | 
					 | 
					        Result<List<CustomerGridByUserIdResultDTO>> govOrgResult = govOrgFeignClient.getMyGrids(formDTO.getStaffId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if (govOrgResult.success() && !CollectionUtils.isEmpty(govOrgResult.getData())) { | 
					 | 
					 | 
					        if (govOrgResult.success() && !CollectionUtils.isEmpty(govOrgResult.getData())) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            List<String> functionList = new ArrayList<>(); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            List<RedDotDetialDTO> details = new ArrayList<>(); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            List<String> gridIdList = govOrgResult.getData().stream().map(CustomerGridByUserIdResultDTO::getGridId).collect(Collectors.toList()); | 
					 | 
					 | 
					            List<String> gridIdList = govOrgResult.getData().stream().map(CustomerGridByUserIdResultDTO::getGridId).collect(Collectors.toList()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            //1、群组管理(待审核的小组申请、变更小组申请)
 | 
					 | 
					 | 
					            //1、群组管理(待审核的小组申请、变更小组申请)
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -335,11 +336,20 @@ public class RemindServiceImpl implements RemindService { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                    } | 
					 | 
					 | 
					                    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					                }); | 
					 | 
					 | 
					                }); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            } | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            redDotResultDTO.setFunctionList(functionList); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            redDotResultDTO.setDetails(details); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } else { | 
					 | 
					 | 
					        } else { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            logger.warn(String.format("基层治理红点查询,获取工作人员所属网格失败,当前staffId=%s", formDTO.getStaffId())); | 
					 | 
					 | 
					            logger.warn(String.format("基层治理红点查询,获取工作人员所属网格失败,当前staffId=%s", formDTO.getStaffId())); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        // 群众直报:当前工作人员所属的组织存在待处理(未读的)、有新的回复的(相当于处理中有红点的)记录就显示红点
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        if(org.apache.commons.lang3.StringUtils.isNotBlank(formDTO.getAgencyId())){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            Result<ResiEventManageRedDotRes> projectRes=govProjectOpenFeignClient.queryResiEventManageRedDot(formDTO.getAgencyId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            if(projectRes.success()&&null !=projectRes.getData()&&projectRes.getData().getTotalCount()>0){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                functionList.add(WorkGrassRootsFunctionConstant.RESI_EVENT_MANAGE); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					                details.add(new RedDotDetialDTO(WorkGrassRootsFunctionConstant.RESI_EVENT_MANAGE, projectRes.getData().getTotalCount().longValue())); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        redDotResultDTO.setFunctionList(functionList); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        redDotResultDTO.setDetails(details); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        return redDotResultDTO; | 
					 | 
					 | 
					        return redDotResultDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |