|
@@ -72,13 +72,13 @@ public class XCFYDatav_outpatient_settle_billJob implements Job {
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
|
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
|
|
public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
|
|
|
- String sql = "select * from V_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 * 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";
|
|
|
Date endBillDate = DateUtil.yesterday();
|
|
Date endBillDate = DateUtil.yesterday();
|
|
|
endBillDate = DateUtil.endOfDay(endBillDate);
|
|
endBillDate = DateUtil.endOfDay(endBillDate);
|
|
|
while (true) {
|
|
while (true) {
|
|
|
String whereSql = "";
|
|
String whereSql = "";
|
|
|
Date billDate = getBillDate();
|
|
Date billDate = getBillDate();
|
|
|
- log.info("开始同步v_outpatient_settle_bill数据,获取上个同步开始结算日期:{} 结束日期:{}", billDate, endBillDate);
|
|
|
|
|
|
|
+ log.info("开始同步V_YBKF_outpatient_settle_bill数据,获取上个同步开始结算日期:{} 结束日期:{}", billDate, endBillDate);
|
|
|
Map<String, Object> paramMap = new HashMap<>();
|
|
Map<String, Object> paramMap = new HashMap<>();
|
|
|
if (null != billDate) {
|
|
if (null != billDate) {
|
|
|
whereSql = " and BILL_DATE>:BILL_DATE";
|
|
whereSql = " and BILL_DATE>:BILL_DATE";
|
|
@@ -147,7 +147,7 @@ public class XCFYDatav_outpatient_settle_billJob implements Job {
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
if (count <= 0) {
|
|
if (count <= 0) {
|
|
|
- log.error("v_outpatient_settle_bill 未查询到大于住院billdate:{} 小于等于住院billdate:{} 的数据,停止同步", billDate, endBillDate);
|
|
|
|
|
|
|
+ log.error("V_YBKF_outpatient_settle_bill 未查询到大于住院billdate:{} 小于等于住院billdate:{} 的数据,停止同步", billDate, endBillDate);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -155,7 +155,7 @@ public class XCFYDatav_outpatient_settle_billJob implements Job {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public Integer getDetailByHisId(String hisId) {
|
|
public Integer getDetailByHisId(String hisId) {
|
|
|
- String sql = "select * from V_OUTPATIENT_SETTLE_DETAILS where hisid=:HISID and item_id is not null";
|
|
|
|
|
|
|
+ String sql = "select * from V_YBKF_OUTPATIENT_SETTLE_DETAILS where hisid=:HISID and item_id is not null";
|
|
|
// List<DictModel> cateGoriesList = sysDictService.getDictItems(Constant.DICT_CATEGORIES_ITEMS_KEY);
|
|
// List<DictModel> cateGoriesList = sysDictService.getDictItems(Constant.DICT_CATEGORIES_ITEMS_KEY);
|
|
|
Map<String, String> cateGoriesMap = CommonUtil.getCategoriesItemsMap();
|
|
Map<String, String> cateGoriesMap = CommonUtil.getCategoriesItemsMap();
|
|
|
// for (DictModel dictModel : cateGoriesList) {
|
|
// for (DictModel dictModel : cateGoriesList) {
|
|
@@ -189,7 +189,7 @@ public class XCFYDatav_outpatient_settle_billJob implements Job {
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- log.info("结束同步V_OUTPATIENT_SETTLE_DETAILS数据,HISID:{} 条数:{}", hisId, count);
|
|
|
|
|
|
|
+ log.info("结束同步V_YBKF_OUTPATIENT_SETTLE_DETAILS数据,HISID:{} 条数:{}", hisId, count);
|
|
|
return count;
|
|
return count;
|
|
|
|
|
|
|
|
|
|
|