| 
					
				 | 
			
			
				@@ -292,7 +292,7 @@ public interface PatientDao { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Update("update zy_ledger_file set deposit=(select isnull(sum(depo_amount),0) from zy_deposit_file f with(nolock) " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             "where f.inpatient_no=#{zyh} and f.admiss_times=#{times} and f.ledger_sn=#{ledger} and f.status in ('1','2') ) " + 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            "where inpatient_no=#{zyh} and admiss_times=#{times} and ledger_sn=#{ledger}") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            "where inpatient_no=#{zyh} and admiss_times=#{times} and ledger_sn=#{ledger} and account_date is null") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     void recountDeposit(@Param("zyh") String zyh, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         @Param("times") int times, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         @Param("ledger") int ledger); 
			 |