临时提交
authorXia Kaixiang <kaixiang.xia@supwisdom.com>
Thu, 8 Aug 2019 03:18:53 +0000 (11:18 +0800)
committerXia Kaixiang <kaixiang.xia@supwisdom.com>
Thu, 24 Oct 2019 07:59:48 +0000 (15:59 +0800)
payapi/src/main/kotlin/com/supwisdom/dlpay/api/scheduler_ynrccchk_task.kt

index e7ad75f..7e28739 100644 (file)
@@ -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 {