|  | @ -1430,9 +1430,7 @@ public class DoorOrderService {
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     public String handleData(Document doc, String orderId) {
 | 
	
		
			
				|  |  |         WlyyDoorServiceOrderDO orderDO = doorServiceOrderDao.findOne(orderId);
 | 
	
		
			
				|  |  |         System.out.println("orderDO  value -------------------");
 | 
	
		
			
				|  |  |         WlyyDoorConclusionDO conclusionDO = doorConclusionDao.findByOrderId(orderId);//808080f66e5efb24016e62838d77000a
 | 
	
		
			
				|  |  |         System.out.println("conclusionDO  value -------------------");
 | 
	
		
			
				|  |  |         String html = doc.toString();
 | 
	
		
			
				|  |  |         //对各个字段赋值
 | 
	
		
			
				|  |  |         html = html.replace("${name}", orderDO.getPatientName());
 | 
	
	
		
			
				|  | @ -1459,8 +1457,6 @@ public class DoorOrderService {
 | 
	
		
			
				|  |  |         html = html.replace("${examresult}",conclusionDO.getExamResult() == null ? "" : conclusionDO.getExamResult());
 | 
	
		
			
				|  |  |         String imgsString = "";
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         System.out.println("赋值完成  value -------------------");
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         if(StringUtils.isNotBlank(conclusionDO.getImgs())) {
 | 
	
		
			
				|  |  |             String imgs = conclusionDO.getImgs();
 | 
	
		
			
				|  |  |             String[] imgsArray;
 | 
	
	
		
			
				|  | @ -1562,10 +1558,10 @@ public class DoorOrderService {
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     public File writeWordFile(List<String> orderId,HttpServletResponse response) throws Exception {
 | 
	
		
			
				|  |  |     public File writeWordFile(List<String> orderId,HttpServletResponse response,String doctorCode) throws Exception {
 | 
	
		
			
				|  |  |         String zipFileName = "service_summary";
 | 
	
		
			
				|  |  |         String exportConclusionList = "exportList";
 | 
	
		
			
				|  |  |         String path = System.getProperty("user.dir") +"/" + exportConclusionList;
 | 
	
		
			
				|  |  |         String exportConclusionList = doctorCode+"exportList";
 | 
	
		
			
				|  |  |         String path = System.getProperty("user.dir") +"/service_summary/" + exportConclusionList;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         System.out.println("path    :"   +path);
 | 
	
		
			
				|  |  | 
 | 
	
	
		
			
				|  | @ -1602,23 +1598,17 @@ public class DoorOrderService {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             String html = this.handleData(doc, orderId.get(i));//16
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             System.out.println("bw  value -------------------:"+path+"/"+fileName);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             BufferedWriter bw = new BufferedWriter(new FileWriter(path+"/"+fileName));//创建的文件
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             System.out.println("创建的文件-----------success");
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             bw.write(html);
 | 
	
		
			
				|  |  |             bw.close();
 | 
	
		
			
				|  |  |             File zipFile = new File(path.replace(exportConclusionList, "") + zipFileName + ".zip");
 | 
	
		
			
				|  |  |             if (zipFile.exists()) {
 | 
	
		
			
				|  |  |                 zipFile.delete();
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |             System.out.println("-----------------  第"+j+"个服务小结  -------------------");
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         // 打包文件夹
 | 
	
		
			
				|  |  |         if (fileToZip(path, path.replace(exportConclusionList, ""), zipFileName)) {
 | 
	
		
			
				|  |  |             System.out.println("=============   開始打包   =============");
 | 
	
		
			
				|  |  |             return new File(path.replace(exportConclusionList, "") + zipFileName + ".zip");
 | 
	
		
			
				|  |  |         } else {
 | 
	
		
			
				|  |  |             return null;
 |