From dca34577c22942c7d2ddd495e4b9c5c1a914fc52 Mon Sep 17 00:00:00 2001 From: yixian Date: Thu, 16 Jul 2020 11:22:40 +1000 Subject: [PATCH] log ato output --- .../manage/analysis/core/impls/ATOReportServiceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/au/com/royalpay/payment/manage/analysis/core/impls/ATOReportServiceImpl.java b/src/main/java/au/com/royalpay/payment/manage/analysis/core/impls/ATOReportServiceImpl.java index f2f724059..935c9f898 100644 --- a/src/main/java/au/com/royalpay/payment/manage/analysis/core/impls/ATOReportServiceImpl.java +++ b/src/main/java/au/com/royalpay/payment/manage/analysis/core/impls/ATOReportServiceImpl.java @@ -239,6 +239,7 @@ public class ATOReportServiceImpl implements ATOReportService { } public static class Progress { + private static final Logger logger = LoggerFactory.getLogger(ATOReportService.class); private String currentMonth; private Map clientsStatus; private final String server; @@ -255,6 +256,7 @@ public class ATOReportServiceImpl implements ATOReportService { public void setMonth(DateTime start, List clients) { currentMonth = start.toString("yyyy-MM"); clientsStatus = clients.stream().collect(ConcurrentHashMap::new, (map, cid) -> map.put(cid, false), Map::putAll); + status = "Exporting"; } public String getFileid() { @@ -276,6 +278,7 @@ public class ATOReportServiceImpl implements ATOReportService { public void setFinished() { this.finished = true; + setStatus("Finished!"); } public String getStatus() { @@ -300,6 +303,7 @@ public class ATOReportServiceImpl implements ATOReportService { } public Progress setStatus(String status) { + logger.info("ATO export status:{}", status); this.status = status; return this; }