|  | @ -1805,6 +1805,7 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |         if (wechatId.equalsIgnoreCase("xm_ykyy_wx")){
 | 
	
		
			
				|  |  |             BusinessOrderDO businessOrderDO = businessOrderDao.selectByRelationCode(prescriptionDO.getOutpatientId());
 | 
	
		
			
				|  |  |             prescriptionDO.setOrderNo(businessOrderDO.getOrderNo());
 | 
	
		
			
				|  |  |             prescriptionDO.setAdmNo(outpatientDO.getAdmNo());
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |         WlyyPrescriptionDO prescription = prescriptionDao.save(prescriptionDO);
 | 
	
		
			
				|  |  | 
 | 
	
	
		
			
				|  | @ -1915,12 +1916,18 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
 | 
	
		
			
				|  |  |             prescription.setRegFee(getChargeFee(outpatientDO.getDoctor()));
 | 
	
		
			
				|  |  |             //保存费用
 | 
	
		
			
				|  |  |             prescriptionDao.save(prescription);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             //上传his开方
 | 
	
		
			
				|  |  |             return sendHisDiagnosis(jsonData, outpatientDO, prescription);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     
 | 
	
		
			
				|  |  |             if (wechatId.equalsIgnoreCase("xm_ykyy_wx")){
 | 
	
		
			
				|  |  |                 outpatientDO.setStatus("2");
 | 
	
		
			
				|  |  |                 outpatientDao.save(outpatientDO);
 | 
	
		
			
				|  |  |                 result.put("code", 1);
 | 
	
		
			
				|  |  |                 result.put("mes", "诊断完成");
 | 
	
		
			
				|  |  |                 return result;
 | 
	
		
			
				|  |  |             }else{
 | 
	
		
			
				|  |  |                 //上传his开方
 | 
	
		
			
				|  |  |                 return sendHisDiagnosis(jsonData, outpatientDO, prescription);
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |         } else {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             outpatientDO.setStatus("2");
 | 
	
		
			
				|  |  |             outpatientDao.save(outpatientDO);
 | 
	
		
			
				|  |  |             result.put("code", 1);
 |