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; }