|  |  | @ -216,12 +216,15 @@ public class ResiEventServiceImpl extends BaseServiceImpl<ResiEventDao, ResiEven | 
			
		
	
		
			
				
					|  |  |  |         } | 
			
		
	
		
			
				
					|  |  |  |         //附件按类型分组【图片、语音】
 | 
			
		
	
		
			
				
					|  |  |  |         List<String> eventImgs = new ArrayList<>(); | 
			
		
	
		
			
				
					|  |  |  |         List<String> voiceList = new ArrayList<>(); | 
			
		
	
		
			
				
					|  |  |  |         List<FileCommonDTO> voiceList = new ArrayList<>(); | 
			
		
	
		
			
				
					|  |  |  |         dto.getAttachmentList().forEach(file->{ | 
			
		
	
		
			
				
					|  |  |  |             if("image".equals(file.getType())){ | 
			
		
	
		
			
				
					|  |  |  |                 eventImgs.add(file.getUrl()); | 
			
		
	
		
			
				
					|  |  |  |             }else if("voice".equals(file.getType())){ | 
			
		
	
		
			
				
					|  |  |  |                 voiceList.add(file.getUrl()); | 
			
		
	
		
			
				
					|  |  |  |                 FileCommonDTO fl = new FileCommonDTO(); | 
			
		
	
		
			
				
					|  |  |  |                 fl.setUrl(file.getUrl()); | 
			
		
	
		
			
				
					|  |  |  |                 fl.setDuration(file.getDuration()); | 
			
		
	
		
			
				
					|  |  |  |                 voiceList.add(fl); | 
			
		
	
		
			
				
					|  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |         }); | 
			
		
	
		
			
				
					|  |  |  |         dto.setEventImgs(eventImgs); | 
			
		
	
	
		
			
				
					|  |  | @ -350,6 +353,7 @@ public class ResiEventServiceImpl extends BaseServiceImpl<ResiEventDao, ResiEven | 
			
		
	
		
			
				
					|  |  |  |                 entity.setAttachmentUrl(file.getUrl()); | 
			
		
	
		
			
				
					|  |  |  |                 entity.setSort(sort); | 
			
		
	
		
			
				
					|  |  |  |                 entity.setStatus(TopicConstant.AUDITING); | 
			
		
	
		
			
				
					|  |  |  |                 entity.setDuration(file.getDuration()); | 
			
		
	
		
			
				
					|  |  |  |                 sort++; | 
			
		
	
		
			
				
					|  |  |  |                 resiEventAttachmentDao.insert(entity); | 
			
		
	
		
			
				
					|  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  | 
 |