| 
						
						
							
								
							
						
						
					 | 
					@ -29,6 +29,7 @@ import com.epmet.commons.tools.scan.param.ImgTaskDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.commons.tools.scan.param.TextScanParamDTO; | 
					 | 
					 | 
					import com.epmet.commons.tools.scan.param.TextScanParamDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.commons.tools.scan.param.TextTaskDTO; | 
					 | 
					 | 
					import com.epmet.commons.tools.scan.param.TextTaskDTO; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.commons.tools.scan.result.SyncScanResult; | 
					 | 
					 | 
					import com.epmet.commons.tools.scan.result.SyncScanResult; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import com.epmet.commons.tools.security.dto.TokenDto; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.commons.tools.utils.ConvertUtils; | 
					 | 
					 | 
					import com.epmet.commons.tools.utils.ConvertUtils; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.commons.tools.utils.Result; | 
					 | 
					 | 
					import com.epmet.commons.tools.utils.Result; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import com.epmet.commons.tools.utils.ScanContentUtils; | 
					 | 
					 | 
					import com.epmet.commons.tools.utils.ScanContentUtils; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -49,6 +50,7 @@ import org.apache.commons.lang3.StringUtils; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.springframework.beans.factory.annotation.Autowired; | 
					 | 
					 | 
					import org.springframework.beans.factory.annotation.Autowired; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.springframework.beans.factory.annotation.Value; | 
					 | 
					 | 
					import org.springframework.beans.factory.annotation.Value; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.springframework.stereotype.Service; | 
					 | 
					 | 
					import org.springframework.stereotype.Service; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import org.springframework.transaction.annotation.Transactional; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import org.springframework.util.CollectionUtils; | 
					 | 
					 | 
					import org.springframework.util.CollectionUtils; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import java.util.ArrayList; | 
					 | 
					 | 
					import java.util.ArrayList; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -154,7 +156,8 @@ public class ResiEventServiceImpl extends BaseServiceImpl<ResiEventDao, ResiEven | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					     * @date 2021/8/3 1:47 下午 | 
					 | 
					 | 
					     * @date 2021/8/3 1:47 下午 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					     */ | 
					 | 
					 | 
					     */ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    @Override | 
					 | 
					 | 
					    @Override | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    public EventDetailResultDTO eventDetail(EventDetailFormDTO formDTO) { | 
					 | 
					 | 
					    @Transactional(rollbackFor = Exception.class) | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    public EventDetailResultDTO eventDetail(EventDetailFormDTO formDTO, TokenDto tokenDto) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        EventDetailResultDTO dto = baseDao.selectEventDetail(formDTO.getEventId()); | 
					 | 
					 | 
					        EventDetailResultDTO dto = baseDao.selectEventDetail(formDTO.getEventId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if (null == dto){ | 
					 | 
					 | 
					        if (null == dto){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            return new EventDetailResultDTO(); | 
					 | 
					 | 
					            return new EventDetailResultDTO(); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -189,6 +192,22 @@ public class ResiEventServiceImpl extends BaseServiceImpl<ResiEventDao, ResiEven | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					            throw new RenException("查询所属网格失败"); | 
					 | 
					 | 
					            throw new RenException("查询所属网格失败"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        } | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        dto.setGridName(gridNameResult.getData()); | 
					 | 
					 | 
					        dto.setGridName(gridNameResult.getData()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        // 查询报事的org
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        List<String> orgNameList = dto.getOrgNameList(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        Result<List<String>> orgResult = govOrgOpenFeignClient.selectOrgNameByType(orgNameList); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        if (!orgResult.success()){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            throw new RenException("查询组织名称失败"); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        List<String> data = orgResult.getData(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        data.addAll(dto.getEventPerson()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        dto.setEventPerson(data); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        // 更改已读状态 报事人的红点:resi_event,艾特人的:resi_event_mention,所代表的组织的:resi_event_report_org
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        if (tokenDto.getApp().equals(EventConstant.TYPE_RESI)){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            baseDao.updateResiEvent(tokenDto.getUserId(),formDTO.getEventId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            baseDao.updateEventMention(tokenDto.getUserId(),formDTO.getEventId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        }else if (tokenDto.getApp().equals(EventConstant.TYPE_GOV)){ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            resiEventReportOrgDao.updateEventOrg(formDTO.getEventId(), formDTO.getOrgId()); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        return dto; | 
					 | 
					 | 
					        return dto; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    } | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |