refactor(iot): 移除设备数据类型空值检查的提前返回逻辑
- 注释掉了dataType.getType()为空时的提前返回逻辑 - 保留了后续的数据类型处理流程以确保功能完整性 - 修改了设备服务实现中的条件判断结构 Signed-off-by: Gjm <你的邮箱>
This commit is contained in:
@@ -879,9 +879,9 @@ public class DeviceServiceImpl implements IDeviceService {
|
||||
return dataType;
|
||||
}
|
||||
dataType.setType(datatypeJson.getString("type"));
|
||||
if (dataType.getType() == null) {
|
||||
return dataType;
|
||||
}
|
||||
// if (dataType.getType() == null) {
|
||||
// return dataType;
|
||||
// }
|
||||
if (dataType.getType().equals("decimal")) {
|
||||
dataType.setMax(datatypeJson.getBigDecimal("max"));
|
||||
dataType.setMin(datatypeJson.getBigDecimal("min"));
|
||||
|
||||
Reference in New Issue
Block a user