修复属性错误

This commit is contained in:
zhouhao 2020-02-21 15:02:52 +08:00
parent 6eb98971bd
commit bbc2d8b066
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ public class DevicePropertiesEntity {
if (value == null) {
return this;
}
setValue(String.valueOf(value));
if (type instanceof NumberType) {
NumberType<?> numberType = (NumberType<?>) type;
setNumberValue(new BigDecimal(numberType.convertNumber(value).toString()));