|
...
|
...
|
@@ -23,11 +23,19 @@ public class IntegerModelOutput extends ThingsModelItemBase<Integer> |
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getView() {
|
|
|
|
if(null == getValue())
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
return getSaveView()+unit;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getSaveView() {
|
|
|
|
if(null == getValue())
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
BigDecimal bigDecimal = new BigDecimal(getValue().toString());
|
|
|
|
return bigDecimal.divide(new BigDecimal(acy),acy.toString().length()-1, RoundingMode.HALF_UP).toString();
|
|
|
|
}
|
...
|
...
|
|