| 
					
				 | 
			
			
				@@ -1355,15 +1355,12 @@ public class MzChargeDetailServiceImpl implements MzChargeDetailService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             throw new MzException("删除处方失败,禁止删除非本人开立处方!"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //撤销医保结算 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        int count = mzPatientMiMapper.countYbZf(clinic.getPatientId(), clinic.getTimes()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        if( count > 0){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            PayInfo retractInfo = tsmzService.retractFees(clinic.getOpId(), clinic.getPatientId(), clinic.getTimes(), 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (retractInfo == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                log.info("删除处方失败,医保撤销失败门诊号:{}就诊次数:{}", clinic.getPatientId(),clinic.getTimes()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (retractInfo.getCode() != 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                log.info("删除处方失败,医保撤销失败门诊号:{}就诊次数:{}[错误信息:{}]", clinic.getPatientId(),clinic.getTimes(),retractInfo.getErrorMessage()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        PayInfo retractInfo = tsmzService.retractFees(clinic.getOpId(), clinic.getPatientId(), clinic.getTimes(), 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (retractInfo == null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            log.info("删除处方失败,医保撤销失败门诊号:{}就诊次数:{}", clinic.getPatientId(), clinic.getTimes()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (retractInfo.getCode() != 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            log.info("删除处方失败,医保撤销失败门诊号:{}就诊次数:{}[错误信息:{}]", clinic.getPatientId(), clinic.getTimes(), retractInfo.getErrorMessage()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         int num = clinicMapper.deleteById(clnicId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         mzVisitTableMapper.deleteByPatientIdAndTimes(clinic.getPatientId(), clinic.getTimes()); 
			 |