|
|
@@ -83,7 +83,7 @@ public class XCFYDatav_outpatient_settle_billJob implements Job {
|
|
|
|
|
|
@Override
|
|
|
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
|
|
|
- String sql = "select * from V_YBKF_OUTPATIENT_SETTLE_BILL where hisid is not null and pay_method!='自费' and bill_date<=:END_BILL_DATE %s and rownum<=1000 order by bill_date asc";
|
|
|
+ String sql = "SELECT A.*, ROWNUM RN FROM (SELECT * FROM V_YBKF_OUTPATIENT_SETTLE_BILL where hisid is not null and pay_method!='自费' %s order by bill_date asc) A WHERE ROWNUM <=1000";
|
|
|
Date endBillDate = DateUtil.yesterday();
|
|
|
endBillDate = DateUtil.endOfDay(endBillDate);
|
|
|
while (true) {
|