feat:【IoT 物联网】获取设备属性时,即使没有值,也进行返回,和 aliyun 保持一致

This commit is contained in:
YunaiV
2025-06-18 21:29:30 +08:00
parent e476dcb298
commit 862f356cb8
10 changed files with 79 additions and 33 deletions

View File

@@ -67,7 +67,7 @@
</select>
<select id="selectListByHistory"
resultType="cn.iocoder.yudao.module.iot.controller.admin.device.vo.data.IotDevicePropertyRespVO">
resultType="cn.iocoder.yudao.module.iot.controller.admin.device.vo.property.IotDevicePropertyRespVO">
SELECT ${@cn.hutool.core.util.StrUtil@toUnderlineCase(reqVO.identifier)} AS `value`, ts AS update_time
FROM device_property_${reqVO.deviceId}
WHERE ${@cn.hutool.core.util.StrUtil@toUnderlineCase(reqVO.identifier)} IS NOT NULL