From 9b5627b2d05a2a3119b177f38103ed8575433339 Mon Sep 17 00:00:00 2001 From: Xia Kaixiang Date: Thu, 8 Aug 2019 11:18:53 +0800 Subject: [PATCH] =?utf8?q?=E4=B8=B4=E6=97=B6=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../com/supwisdom/dlpay/api/scheduler_ynrccchk_task.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/payapi/src/main/kotlin/com/supwisdom/dlpay/api/scheduler_ynrccchk_task.kt b/payapi/src/main/kotlin/com/supwisdom/dlpay/api/scheduler_ynrccchk_task.kt index e7ad75f3..7e287394 100644 --- a/payapi/src/main/kotlin/com/supwisdom/dlpay/api/scheduler_ynrccchk_task.kt +++ b/payapi/src/main/kotlin/com/supwisdom/dlpay/api/scheduler_ynrccchk_task.kt @@ -52,6 +52,7 @@ class DownloadYnrccChkfileTask { @SchedulerLock(name = "DownloadYnrccChkfileSchedulerTask", lockAtMostForString = "PT10M") fun doDownloadYnrccChkfile() { try { + if (null == TenantContext.getTenantSchema()) TenantContext.setTenantSchema(Constants.DEFAULT_TENANTID) //下载对账单逻辑 val hostdate = systemUtilService.sysdatetime.hostdate val downloadLastdate = ynrccBusinessService.getLastDownloadBillDate() @@ -72,7 +73,7 @@ class DownloadYnrccChkfileTask { } else if (YnrccUtil.NO_RECORDS_TODAY == resp.code) { //当日无交易明细,也创建空记录 - transactionReconciliationService.doSuccessTransactionChkfile(chkfile,"请求银行返回:当日无交易明细") + transactionReconciliationService.doSuccessTransactionChkfile(chkfile, "请求银行返回:当日无交易明细") } else { //报错,退出对账单拉取 @@ -130,7 +131,7 @@ class DownloadYnrccChkfileTask { } //成功 - transactionReconciliationService.doSuccessTransactionChkfile(chkfile,"对账单数据下载成功") + transactionReconciliationService.doSuccessTransactionChkfile(chkfile, "对账单数据下载成功") } } else { -- 2.17.1