---
fix up
This commit is contained in:
aalehin 2023-06-28 17:06:18 +03:00
parent e9661f8ec6
commit d388d5a39e

View file

@ -55,6 +55,7 @@ public class DF12Exporter extends AbstractExporterService<SDf12> {
}
String lastHeader20 = null;
@Override
protected String convertRecord(SDf12 record, ConvertionContext context) {
StringBuilder stringBuilder = new StringBuilder();
@ -87,11 +88,11 @@ public class DF12Exporter extends AbstractExporterService<SDf12> {
}
protected long countIssues(Collection<SDf12> records) {
return records.stream()
.map(r -> r.getQuantity())
return Double.valueOf(records.stream()
.map(SDf12::getQuantity)
.filter(StringUtil::isNotEmpty)
.mapToLong(quantity -> Long.parseLong(quantity))
.sum();
.mapToDouble(Double::parseDouble)
.sum()).longValue();
}
@Override