|
@@ -86,8 +86,6 @@ public class XCFYDatav_outpatient_settle_billJob implements Job {
|
|
|
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 * 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);
|
|
|
- String openStr = sysDictService.queryDictTextByKey(Constant.JOB_DELETE_OLD_DATE_SWITCH,"SWITCH");;
|
|
|
|
|
- log.info("switch_open:{}", openStr);
|
|
|
|
|
while (true) {
|
|
while (true) {
|
|
|
String whereSql = "";
|
|
String whereSql = "";
|
|
|
Date billDate = getBillDate();
|
|
Date billDate = getBillDate();
|
|
@@ -110,9 +108,8 @@ public class XCFYDatav_outpatient_settle_billJob implements Job {
|
|
|
log.error("hisid:{} 未查询到门诊结算清单", hisId);
|
|
log.error("hisid:{} 未查询到门诊结算清单", hisId);
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
- if(null != openStr && Constant.SWITCH_OPEN.equals(openStr.toString())) {
|
|
|
|
|
- outpatientSettleBillService.lambdaUpdate().eq(OutpatientSettleBill::getHisid, hisId).remove();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ outpatientSettleBillService.lambdaUpdate().eq(OutpatientSettleBill::getHisid, hisId).remove();
|
|
|
|
|
+
|
|
|
dataMap.put("CREATE_BY", "auto");
|
|
dataMap.put("CREATE_BY", "auto");
|
|
|
dataMap.put("CREATE_TIME", new Date());
|
|
dataMap.put("CREATE_TIME", new Date());
|
|
|
Object diagCode = dataMap.get("ADMISSION_DISEASE_ID");
|
|
Object diagCode = dataMap.get("ADMISSION_DISEASE_ID");
|
|
@@ -206,9 +203,7 @@ public class XCFYDatav_outpatient_settle_billJob implements Job {
|
|
|
}, new TransferDataCallFunction() {
|
|
}, new TransferDataCallFunction() {
|
|
|
@Override
|
|
@Override
|
|
|
public Boolean transferData(Map<String, Object> dataMap) throws Exception {
|
|
public Boolean transferData(Map<String, Object> dataMap) throws Exception {
|
|
|
- if(null != openStr && Constant.SWITCH_OPEN.equals(openStr.toString())) {
|
|
|
|
|
- outpatientSettlementDetailsService.lambdaUpdate().eq(OutpatientSettlementDetails::getHisid, hisId).remove();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ outpatientSettlementDetailsService.lambdaUpdate().eq(OutpatientSettlementDetails::getHisid, hisId).remove();
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|