|  | @@ -996,7 +996,7 @@ public interface UpIdCollectionDao extends BaseMapper<SetlinfoUpld> {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Select(" select  count(1) from    t_case_frontsheet_main where bah=#{inpatientNo} and admiss_times = #{admissTimes}")
 | 
	
		
			
				|  |  |      Integer queryCountTCaseFrontsheetMain(@Param("inpatientNo") String inpatientNo, @Param("admissTimes") Integer admissTimes);
 | 
	
		
			
				|  |  | -    @Select(" select medfee_sumamt from t_si_setlinfo  where   pat_no = #{patNo} and  times =#{times} and ledger_sn = #{ledgerSn}")
 | 
	
		
			
				|  |  | +    @Select(" select top 1 medfee_sumamt from t_si_setlinfo  where  revoked=0 and  pat_no = #{patNo} and  times =#{times} and ledger_sn = #{ledgerSn}")
 | 
	
		
			
				|  |  |      BigDecimal getsetlTotalFee(@Param("patNo") String patNo, @Param("times") Integer times,@Param("ledgerSn")Integer ledgerSn);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Update(" update t_si_setlinfo set bmy_bz =#{bmyBz} where pat_no=#{patNo} and times =#{times}  and ledger_sn=#{ledgerSn} ")
 |