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 { 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