| 
					
				 | 
			
			
				@ -2115,7 +2115,6 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            prescriptionDO.setDoctor(outpatientDO.getDoctor()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            prescriptionDO.setDoctorName(outpatientDO.getDoctorName()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            prescriptionDO.setPayStatus(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            prescriptionDO.setCheckStatus(3); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (wechatId.equalsIgnoreCase("xm_ykyy_wx")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                prescriptionDO.setAdmNo(outpatientDO.getAdmNo()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -2172,12 +2171,10 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //=====================保存日志 start========================================================= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        List<WlyyPrescriptionCheckDO> prescriptionCheckDOS = prescriptionCheckDao.findByStatus(prescription.getId(), 5); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (prescriptionCheckDOS == null || prescriptionCheckDOS.size() == 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            savePrescriptionCheck(prescription.getDoctor(), "开具处方", 5, prescription.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            savePrescriptionCheck(prescription.getDoctor(), "草稿", 6, prescription.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if (wlyyPrescriptionDO1 != null && wlyyPrescriptionDO1.size() > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            savePrescriptionCheck(prescription.getDoctor(), "处方修改", 3, prescription.getId()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //=====================保存日志 end========================================================= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        //判断是否有检查检验或药品开方 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -7380,6 +7377,9 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } else if (status == 5) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            wlyyPrescriptionDO.setCheckStatus(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            wlyyPrescriptionDO.setCheckReason("未审核"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        }else if (status == 6) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            wlyyPrescriptionDO.setCheckStatus(3); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            wlyyPrescriptionDO.setCheckReason("草稿"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        prescriptionDao.save(wlyyPrescriptionDO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return prescriptionCheckDO; 
			 |