|
|
@ -239,6 +239,7 @@ public class ATOReportServiceImpl implements ATOReportService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static class Progress {
|
|
|
|
public static class Progress {
|
|
|
|
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger(ATOReportService.class);
|
|
|
|
private String currentMonth;
|
|
|
|
private String currentMonth;
|
|
|
|
private Map<Integer, Boolean> clientsStatus;
|
|
|
|
private Map<Integer, Boolean> clientsStatus;
|
|
|
|
private final String server;
|
|
|
|
private final String server;
|
|
|
@ -255,6 +256,7 @@ public class ATOReportServiceImpl implements ATOReportService {
|
|
|
|
public void setMonth(DateTime start, List<Integer> clients) {
|
|
|
|
public void setMonth(DateTime start, List<Integer> clients) {
|
|
|
|
currentMonth = start.toString("yyyy-MM");
|
|
|
|
currentMonth = start.toString("yyyy-MM");
|
|
|
|
clientsStatus = clients.stream().collect(ConcurrentHashMap::new, (map, cid) -> map.put(cid, false), Map::putAll);
|
|
|
|
clientsStatus = clients.stream().collect(ConcurrentHashMap::new, (map, cid) -> map.put(cid, false), Map::putAll);
|
|
|
|
|
|
|
|
status = "Exporting";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getFileid() {
|
|
|
|
public String getFileid() {
|
|
|
@ -276,6 +278,7 @@ public class ATOReportServiceImpl implements ATOReportService {
|
|
|
|
|
|
|
|
|
|
|
|
public void setFinished() {
|
|
|
|
public void setFinished() {
|
|
|
|
this.finished = true;
|
|
|
|
this.finished = true;
|
|
|
|
|
|
|
|
setStatus("Finished!");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getStatus() {
|
|
|
|
public String getStatus() {
|
|
|
@ -300,6 +303,7 @@ public class ATOReportServiceImpl implements ATOReportService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Progress setStatus(String status) {
|
|
|
|
public Progress setStatus(String status) {
|
|
|
|
|
|
|
|
logger.info("ATO export status:{}", status);
|
|
|
|
this.status = status;
|
|
|
|
this.status = status;
|
|
|
|
return this;
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
}
|
|
|
|