فهرست منبع

更新门诊和住院数据入库

0027005599 2 سال پیش
والد
کامیت
23dba253e9

+ 1 - 1
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/medical/job/XCFYDatav_outpatient_settle_billJob.java

@@ -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);