| 
					
				 | 
			
			
				@ -11,6 +11,7 @@ import com.yihu.jw.door.service.WlyyDoorServiceOrderService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.door.service.common.HospitalService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.door.service.common.ServerPackageService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.door.service.prescription.JwDoorPrescriptionService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.door.util.StreamUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.entity.door.WlyyDoorConclusionDO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.entity.door.WlyyDoorServiceOrderDO; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import com.yihu.jw.restmodel.ResponseContant; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -24,6 +25,10 @@ import org.apache.poi.poifs.filesystem.POIFSFileSystem; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.jsoup.Jsoup; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.jsoup.nodes.Document; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.beans.factory.annotation.Autowired; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.core.io.ClassPathResource; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.core.io.Resource; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.core.io.support.PathMatchingResourcePatternResolver; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.core.io.support.ResourcePatternResolver; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.http.MediaType; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.web.bind.annotation.*; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -1242,10 +1247,25 @@ public class DoorOrderController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            response.setHeader("Content-Disposition", "attachment; filename=" + fileName); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            OutputStream os = response.getOutputStream(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            //获取相对路径 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String pathName = DoorOrderController.class.getResource("/").getPath().replaceFirst("/", ""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            pathName = pathName.replace("target/classes/", "src/main/resources/conclusion.mht"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            Document doc = Jsoup.parse(new File(pathName), "UTF-8"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String html = doorOrderService.handleData(doc,orderId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            String pathName = DoorOrderController.class.getResource("/").getPath().replaceFirst("/", ""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            pathName = pathName.replace("target/classes/", "src/main/resources/conclusion.mht"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            Document doc = Jsoup.parse(new File(pathName), "UTF-8"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            String txt =     StreamUtil.readResources(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            ByteArrayInputStream ins = new ByteArrayInputStream(txt.getBytes()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            File file = new File("conclusion.mht"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            OutputStream os1 = new FileOutputStream(file); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            int bytesRead = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            byte[] buffer1 = new byte[8192]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            while ((bytesRead = ins.read(buffer1, 0, 8192)) != -1) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//                os1.write(buffer1, 0, bytesRead); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            os1.close(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            ins.close(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				//            Document aa = Jsoup.parse(file,"UTF-8"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            Document aa = Jsoup.parse(StreamUtil.readResources()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String html = doorOrderService.handleData(aa,orderId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            byte b[] = html.getBytes(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            ByteArrayInputStream bais = new ByteArrayInputStream(b); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            POIFSFileSystem poifs = new POIFSFileSystem(); 
			 |