From 0e864e89a9f0c80d0250f27ca45887a1c07eee50 Mon Sep 17 00:00:00 2001 From: Tayl0r <519104047@qq.com> Date: Thu, 1 Mar 2018 15:15:02 +0800 Subject: [PATCH] fix --- .../core/impls/PlatformClearAnalysisServiceImpl.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/analysis/core/impls/PlatformClearAnalysisServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/analysis/core/impls/PlatformClearAnalysisServiceImpl.java index 1f89de678..e0364ece3 100644 --- a/src/main/java/au/com/royalpay/payment/manage/analysis/core/impls/PlatformClearAnalysisServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/analysis/core/impls/PlatformClearAnalysisServiceImpl.java @@ -295,7 +295,6 @@ public class PlatformClearAnalysisServiceImpl implements PlatformClearService { public JSONObject getSystemClearingAmount(Date settle_date, Object settlementLog, String channel) throws Exception { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd 02:00:00"); - SimpleDateFormat onlineSdf = new SimpleDateFormat("yyyyMMdd 02:00:00"); JSONObject sysLogs = new JSONObject(); String start_date = null; String end_date = null; @@ -312,8 +311,8 @@ public class PlatformClearAnalysisServiceImpl implements PlatformClearService { } else if (StringUtils.equals("AlipayOnline", channel)) { JSONObject alipayOnlineSettleLog = (JSONObject) settlementLog; logger.info("AlipayOnline System Settle Logs:" + alipayOnlineSettleLog.getDate("min_time") + "<====>" + alipayOnlineSettleLog.getDate("max_time")); - start_date = onlineSdf.format(alipayOnlineSettleLog.getDate("min_time")); - end_date = onlineSdf.format(DateUtils.addDays(alipayOnlineSettleLog.getDate("max_time"), 1)); + start_date = sdf.format(alipayOnlineSettleLog.getDate("min_time")); + end_date = sdf.format(DateUtils.addDays(alipayOnlineSettleLog.getDate("max_time"), 1)); } else { return null; }