From 5f262bb891bbd864891264d1b1ebd7fd9f80379d Mon Sep 17 00:00:00 2001 From: "eason.qian" Date: Sun, 21 Jan 2018 16:32:58 +1100 Subject: [PATCH 1/2] fix --- .../management/clearing/core/impl/CleanServiceImpl.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/au/com/royalpay/payment/manage/management/clearing/core/impl/CleanServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/management/clearing/core/impl/CleanServiceImpl.java index e00826762..23056f7e3 100644 --- a/src/main/java/au/com/royalpay/payment/manage/management/clearing/core/impl/CleanServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/management/clearing/core/impl/CleanServiceImpl.java @@ -947,7 +947,14 @@ public class CleanServiceImpl implements CleanService, ManagerTodoNoticeProvider return JSON.parseObject(reportItem.getString("result")); } } - return paymentApi.validTransactions(dt, fix); + JSONObject report = paymentApi.validTransactions(dt, fix); + JSONObject log = new JSONObject(); + log.put("valid_date", dt); + log.put("create_time", new Date()); + log.put("result", report.toJSONString()); + validationLogMapper.removeByDate(dt); + validationLogMapper.save(log); + return report; } private byte[] getZipByteArr(List fileByteArrWithName) throws IOException { From d93951a95c8aa1e4c88a2384092fe7165a363c89 Mon Sep 17 00:00:00 2001 From: "eason.qian" Date: Sun, 21 Jan 2018 17:03:23 +1100 Subject: [PATCH 2/2] fix --- .../manage/mappers/customers/CustomerMembershipMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/au/com/royalpay/payment/manage/mappers/customers/CustomerMembershipMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/mappers/customers/CustomerMembershipMapper.xml index df98c4b89..63477ee9d 100644 --- a/src/main/resources/au/com/royalpay/payment/manage/mappers/customers/CustomerMembershipMapper.xml +++ b/src/main/resources/au/com/royalpay/payment/manage/mappers/customers/CustomerMembershipMapper.xml @@ -54,7 +54,7 @@ 0 + AND sm.role & 10000001 > 0 and sm.is_valid=1 ]]> \ No newline at end of file