parent
e9661f8ec6
commit
d388d5a39e
1 changed files with 5 additions and 4 deletions
|
|
@ -55,6 +55,7 @@ public class DF12Exporter extends AbstractExporterService<SDf12> {
|
||||||
}
|
}
|
||||||
|
|
||||||
String lastHeader20 = null;
|
String lastHeader20 = null;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected String convertRecord(SDf12 record, ConvertionContext context) {
|
protected String convertRecord(SDf12 record, ConvertionContext context) {
|
||||||
StringBuilder stringBuilder = new StringBuilder();
|
StringBuilder stringBuilder = new StringBuilder();
|
||||||
|
|
@ -87,11 +88,11 @@ public class DF12Exporter extends AbstractExporterService<SDf12> {
|
||||||
}
|
}
|
||||||
|
|
||||||
protected long countIssues(Collection<SDf12> records) {
|
protected long countIssues(Collection<SDf12> records) {
|
||||||
return records.stream()
|
return Double.valueOf(records.stream()
|
||||||
.map(r -> r.getQuantity())
|
.map(SDf12::getQuantity)
|
||||||
.filter(StringUtil::isNotEmpty)
|
.filter(StringUtil::isNotEmpty)
|
||||||
.mapToLong(quantity -> Long.parseLong(quantity))
|
.mapToDouble(Double::parseDouble)
|
||||||
.sum();
|
.sum()).longValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue