From 0bb3a1c687898a12b5b42a764eff639daef9eaef Mon Sep 17 00:00:00 2001 From: yixian Date: Wed, 15 Jul 2020 12:14:53 +1000 Subject: [PATCH] syn progress --- .../manage/analysis/core/impls/ATOReportServiceImpl.java | 2 ++ 1 file changed, 2 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 404dfd393..a7f9f9eb3 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 @@ -204,6 +204,7 @@ public class ATOReportServiceImpl implements ATOReportService { List clients = clientMapper.listClientsWithTransactionsSettled(startOfMon.toDate(), endOfMon.toDate()); if (progress != null) { progress.setMonth(startOfMon, clients); + synchronizeProgress(); } clients.parallelStream().forEach(clientId -> loadClientMonthTransactions(reportingParty, clientId, startOfMon, endOfMon)); } @@ -231,6 +232,7 @@ public class ATOReportServiceImpl implements ATOReportService { } if (progress != null) { progress.markClientFinished(clientId); + synchronizeProgress(); } }