Commit 4a23eb1c authored by neo's avatar neo

[bugfix] final value only used in lamda

parent b17265b6
......@@ -617,7 +617,8 @@ public class DataImportServiceImpl {
if (companylist != null && companylist.size() > 0) {
break;
} else {
List<Balance> periodList = addlist.stream().filter(x -> x.getPeriodId() == i - 1).collect(Collectors.toList());
int finalI1 = i;
List<Balance> periodList = addlist.stream().filter(x -> x.getPeriodId() == (finalI1 - 1)).collect(Collectors.toList());
int finalI = i;
periodList.forEach(dto -> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment