Commit 75bca650da7954bac584d46a4cac428dbfbf49ca

Authored by YunaiV
1 parent 3ab7ad48

【代码评审】IoT:增加相关待定项

yudao-module-iot/yudao-module-iot-biz/src/main/java/cn/iocoder/yudao/module/iot/service/device/data/IotDevicePropertyServiceImpl.java
@@ -133,6 +133,7 @@ public class IotDevicePropertyServiceImpl implements IotDevicePropertyService { @@ -133,6 +133,7 @@ public class IotDevicePropertyServiceImpl implements IotDevicePropertyService {
133 } 133 }
134 134
135 // 2. 根据物模型,拼接合法的属性 135 // 2. 根据物模型,拼接合法的属性
  136 + // TODO @芋艿:【待定 004】赋能后,属性到底以 thingModel 为准(ik),还是 db 的表结构为准(tl)?
136 List<IotThingModelDO> thingModels = thingModelService.getThingModelListByProductKeyFromCache(device.getProductKey()); 137 List<IotThingModelDO> thingModels = thingModelService.getThingModelListByProductKeyFromCache(device.getProductKey());
137 Map<String, Object> properties = new HashMap<>(); 138 Map<String, Object> properties = new HashMap<>();
138 ((Map<?, ?>) message.getData()).forEach((key, value) -> { 139 ((Map<?, ?>) message.getData()).forEach((key, value) -> {
yudao-module-iot/yudao-module-iot-plugins/yudao-module-iot-plugin-http/src/main/java/cn/iocoder/yudao/module/iot/plugin/http/upstream/router/IotDevicePropertyReportVertxHandler.java
@@ -20,6 +20,7 @@ import java.util.Map; @@ -20,6 +20,7 @@ import java.util.Map;
20 import static cn.iocoder.yudao.framework.common.exception.enums.GlobalErrorCodeConstants.BAD_REQUEST; 20 import static cn.iocoder.yudao.framework.common.exception.enums.GlobalErrorCodeConstants.BAD_REQUEST;
21 import static cn.iocoder.yudao.framework.common.exception.enums.GlobalErrorCodeConstants.INTERNAL_SERVER_ERROR; 21 import static cn.iocoder.yudao.framework.common.exception.enums.GlobalErrorCodeConstants.INTERNAL_SERVER_ERROR;
22 22
  23 +// TODO @芋艿:【待定 005】要不要简化成,解析后,统一处理?只有一个 Handler!!!
23 /** 24 /**
24 * IoT 设备属性上报的 Vert.x Handler 25 * IoT 设备属性上报的 Vert.x Handler
25 * 26 *