|  | @@ -5,10 +5,8 @@ import org.apache.ibatis.annotations.Param;
 | 
	
		
			
				|  |  |  import org.apache.ibatis.annotations.Select;
 | 
	
		
			
				|  |  |  import org.apache.ibatis.annotations.Update;
 | 
	
		
			
				|  |  |  import thyyxxk.webserver.entity.medicalinsurance.manage.InstSetlLdgChkBrf;
 | 
	
		
			
				|  |  | -import thyyxxk.webserver.entity.medicalinsurance.setlinfo.SiSetldetail;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import java.math.BigDecimal;
 | 
	
		
			
				|  |  | -import java.util.Date;
 | 
	
		
			
				|  |  |  import java.util.List;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  /**
 | 
	
	
		
			
				|  | @@ -37,8 +35,9 @@ public interface SiManageDao {
 | 
	
		
			
				|  |  |      @Select("select pat_no,times,ledger_sn,medfee_sumamt,acct_pay,fund_pay_sumamt, " +
 | 
	
		
			
				|  |  |              "hospPay=(select sum(b.fund_payamt) from t_si_setldetail b where b.pat_no=a.pat_no " +
 | 
	
		
			
				|  |  |              "and b.times=a.times and b.ledger_sn=a.ledger_sn and (b.fund_pay_type='999996' or b.setl_proc_info='999996'))" +
 | 
	
		
			
				|  |  | -            "from t_si_setlinfo a where insutype=#{insutype} and " +
 | 
	
		
			
				|  |  | -            "setl_type=#{setlType} and revoked=0 and clr_optins=#{clrOptins} and setl_time>=#{start} and setl_time<=#{end}")
 | 
	
		
			
				|  |  | +            "from t_si_setlinfo a where insutype=#{insutype} and setl_type=#{setlType} and revoked=0 " +
 | 
	
		
			
				|  |  | +            "and clr_optins=#{clrOptins} and setl_time>=#{start} and setl_time<=#{end} and fund_pay_sumamt!=0 " +
 | 
	
		
			
				|  |  | +            "and (insuplc_admdvs='439900' or insuplc_admdvs like '4301%')")
 | 
	
		
			
				|  |  |      List<InstSetlLdgChkBrf> selectSetlChkBrfsWithInsutype(@Param("setlType") String setlType,
 | 
	
		
			
				|  |  |                                                @Param("insutype") String insutype,
 | 
	
		
			
				|  |  |                                                @Param("clrOptins") String clrOptins,
 | 
	
	
		
			
				|  | @@ -46,10 +45,10 @@ public interface SiManageDao {
 | 
	
		
			
				|  |  |                                                @Param("end") String end);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Select("select pat_no,times,ledger_sn,setl_id,mdtrt_id,psn_no,medfee_sumamt,acct_pay,fund_pay_sumamt,psn_cash_pay, " +
 | 
	
		
			
				|  |  | -            "hospPay=(select sum(b.fund_payamt) from t_si_setldetail b where b.pat_no=a.pat_no " +
 | 
	
		
			
				|  |  | -            "and b.times=a.times and b.ledger_sn=a.ledger_sn and (b.fund_pay_type='999996' or b.setl_proc_info='999996'))" +
 | 
	
		
			
				|  |  | -            "from t_si_setlinfo a where setl_type=#{setlType} and revoked=0 and clr_optins=#{clrOptins} " +
 | 
	
		
			
				|  |  | -            "and setl_time>=#{start} and setl_time<=#{end}")
 | 
	
		
			
				|  |  | +            "hospPay=(select sum(b.fund_payamt) from t_si_setldetail b where b.pat_no=a.pat_no and b.times=a.times " +
 | 
	
		
			
				|  |  | +            "and b.ledger_sn=a.ledger_sn and (b.fund_pay_type='999996' or b.setl_proc_info='999996'))" +
 | 
	
		
			
				|  |  | +            "from t_si_setlinfo a where setl_type=#{setlType} and revoked=0 and clr_optins=#{clrOptins} and fund_pay_sumamt!=0 " +
 | 
	
		
			
				|  |  | +            "and setl_time>=#{start} and setl_time<=#{end} and (insuplc_admdvs='439900' or insuplc_admdvs like '4301%')")
 | 
	
		
			
				|  |  |      List<InstSetlLdgChkBrf> selectSetlChkBrfs(@Param("setlType") String setlType,
 | 
	
		
			
				|  |  |                                                @Param("clrOptins") String clrOptins,
 | 
	
		
			
				|  |  |                                                @Param("start") String start,
 |