| 
					
				 | 
			
			
				@ -16,6 +16,7 @@ import com.yihu.hos.web.framework.constant.EndPointConstant; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.hos.web.framework.model.Result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.hos.web.framework.util.GridFSUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.beans.factory.annotation.Value; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.stereotype.Service; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.transaction.annotation.Transactional; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.web.multipart.commons.CommonsMultipartFile; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -40,6 +41,9 @@ public class AppManager { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Resource(name = AppDao.BEAN_ID) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private AppDao appDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Value("${spring.data.mongodb.gridFsDatabase}") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private String dbName; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @Resource(name = AppServiceDao.BEAN_ID) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    private AppServiceDao appServiceDao; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -170,7 +174,6 @@ public class AppManager { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public Result readFile(OutputStream os, String fileName) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String dbName = "upload"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            fileName = DES.decrypt(fileName, DES.COMMON_PASSWORD); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            GridFSUtil.readFile(mongoConfig.mongoClient().getDatabase(dbName), os, fileName); 
			 |