|
|
@@ -83,7 +83,7 @@ public class XCFYDatav_outpatient_settle_billJob implements Job {
|
|
|
|
|
|
@Override
|
|
|
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
|
|
|
- String sql = "SSELECT * FROM V_YBKF_OUTPATIENT_SETTLE_BILL where hisid is not null and pay_method!='自费' and if_local_flag!='非医保' %s order by bill_date asc";
|
|
|
+ String sql = "SSELECT * FROM V_YBKF_OUTPATIENT_SETTLE_BILL where hisid is not null and pay_method!='自费' and if_local_flag!='非医保' and BILL_DATE<=:END_BILL_DATE %s order by bill_date asc";
|
|
|
Date endBillDate = DateUtil.yesterday();
|
|
|
endBillDate = DateUtil.endOfDay(endBillDate);
|
|
|
|