Commit ead4192b authored by neo's avatar neo

[bugfix] import finace data import replace mapfunction with exctrace

parent 0a139306
......@@ -282,15 +282,7 @@ public class FinanceDataImportServiceImpl {
List<VoucherDto> dtos = new ArrayList<>(vouchers.size());
vouchers.forEach(m -> {
VoucherDto dto = new VoucherDto();
try {
FieldsMapper.map(m, dto);
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
}
dtos.add(dto);
dtos.add(new VoucherDto().extractFromVoucher(m));
});
return dtos;
......
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