заполнение Sd06#sum ожидает string/bigdecimal
This commit is contained in:
parent
9382a8be8a
commit
2a109ed496
1 changed files with 5 additions and 0 deletions
|
|
@ -22,6 +22,11 @@ public class SDf06Table extends AbstractTable<SDf06> {
|
||||||
SDf06 result = new SDf06();
|
SDf06 result = new SDf06();
|
||||||
result.setAccount((String) entity[0]);
|
result.setAccount((String) entity[0]);
|
||||||
result.setSum((BigDecimal) entity[1]);
|
result.setSum((BigDecimal) entity[1]);
|
||||||
|
if (entity[1] instanceof BigDecimal) {
|
||||||
|
result.setSum((BigDecimal) entity[1]);
|
||||||
|
} else if (entity[1] instanceof String) {
|
||||||
|
result.setSum(new BigDecimal((String) entity[1]));
|
||||||
|
}
|
||||||
result.setMarket((String) entity[2]);
|
result.setMarket((String) entity[2]);
|
||||||
result.setType((String) entity[3]);
|
result.setType((String) entity[3]);
|
||||||
result.setDeal((String) entity[4]);
|
result.setDeal((String) entity[4]);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue