Commit e9c5464aac74eb9a977634eb43f23a7749d1f444
1 parent
862f356c
feat:【IoT 物联网】获取设备属性时,即使没有值,也进行返回,和 aliyun 保持一致
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-module-iot/yudao-module-iot-biz/src/main/resources/mapper/device/IotDevicePropertyMapper.xml
| @@ -73,7 +73,7 @@ | @@ -73,7 +73,7 @@ | ||
| 73 | WHERE ${@cn.hutool.core.util.StrUtil@toUnderlineCase(reqVO.identifier)} IS NOT NULL | 73 | WHERE ${@cn.hutool.core.util.StrUtil@toUnderlineCase(reqVO.identifier)} IS NOT NULL |
| 74 | AND ts BETWEEN ${@cn.hutool.core.date.LocalDateTimeUtil@toEpochMilli(reqVO.times[0])} | 74 | AND ts BETWEEN ${@cn.hutool.core.date.LocalDateTimeUtil@toEpochMilli(reqVO.times[0])} |
| 75 | AND ${@cn.hutool.core.date.LocalDateTimeUtil@toEpochMilli(reqVO.times[1])} | 75 | AND ${@cn.hutool.core.date.LocalDateTimeUtil@toEpochMilli(reqVO.times[1])} |
| 76 | - ORDER BY ts ASC | 76 | + ORDER BY ts DESC |
| 77 | </select> | 77 | </select> |
| 78 | 78 | ||
| 79 | </mapper> | 79 | </mapper> |
| 80 | \ No newline at end of file | 80 | \ No newline at end of file |