|  | @ -105,6 +105,16 @@ public class ArchivesServiceImpl implements ArchivesService { | 
		
	
		
			
				|  |  |         String insertValue = ""; |  |  |         String insertValue = ""; | 
		
	
		
			
				|  |  |         String updateValue = ""; |  |  |         String updateValue = ""; | 
		
	
		
			
				|  |  |         for(ArchivesDictionary archivesDictionary:showFiled){ |  |  |         for(ArchivesDictionary archivesDictionary:showFiled){ | 
		
	
		
			
				|  |  |  |  |  |             if(archivesDictionary.getIsRequired()){ | 
		
	
		
			
				|  |  |  |  |  |                 if(null == json.get(archivesDictionary.getFieldName()) || "".equals(json.get(archivesDictionary.getFieldName()))){ | 
		
	
		
			
				|  |  |  |  |  |                     return archivesDictionary.getFieldName()+"不可为空!"; | 
		
	
		
			
				|  |  |  |  |  |                 } | 
		
	
		
			
				|  |  |  |  |  |             } | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  |             if(archivesDictionary.getIsRepeat()){ | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |  |  |  |             } | 
		
	
		
			
				|  |  |  |  |  | 
 | 
		
	
		
			
				|  |  |             insertFiled +=archivesDictionary.getFieldName()+","; |  |  |             insertFiled +=archivesDictionary.getFieldName()+","; | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
		
			
				|  |  |             insertValue += archivesDictionary.getIsDataType() == 1 ? |  |  |             insertValue += archivesDictionary.getIsDataType() == 1 ? | 
		
	
	
		
			
				|  | @ -125,7 +135,7 @@ public class ArchivesServiceImpl implements ArchivesService { | 
		
	
		
			
				|  |  |         String sql = StringUtils.isEmpty(dtoId) ? "insert into " + archivesType.getEnName() + "(" + insertFiled +") values ("+insertValue+")" |  |  |         String sql = StringUtils.isEmpty(dtoId) ? "insert into " + archivesType.getEnName() + "(" + insertFiled +") values ("+insertValue+")" | 
		
	
		
			
				|  |  |                 : "update "+archivesType.getEnName() +" set "+updateValue+" where id = '"+dtoId+"'"; |  |  |                 : "update "+archivesType.getEnName() +" set "+updateValue+" where id = '"+dtoId+"'"; | 
		
	
		
			
				|  |  |         int result = entityManager.createNativeQuery(sql).executeUpdate(); |  |  |         int result = entityManager.createNativeQuery(sql).executeUpdate(); | 
		
	
		
			
				|  |  |         return result; |  |  |  | 
		
	
		
			
				|  |  |  |  |  |         return "成功更新"+result+"条数据。"; | 
		
	
		
			
				|  |  |     } |  |  |     } | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
		
			
				|  |  |     @Override |  |  |     @Override | 
		
	
	
		
			
				|  | 
 |