Commit 3fe02e5ca8da39cb132be77431594214d515af06
1 parent
10652fbf
fix(DEFECT-669): 设备属性出现null选项的问题修复
Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -380,8 +380,8 @@ |
380 | 380 | <select id="findDeviceKeys" resultType="string"> |
381 | 381 | SELECT |
382 | 382 | DISTINCT base.key as keyName |
383 | - FROM ts_kv_latest latest | |
384 | - LEFT JOIN ts_kv_dictionary base ON latest.key = base.key_id | |
383 | + FROM ts_kv_dictionary base | |
384 | + LEFT JOIN ts_kv_latest latest ON latest.key = base.key_id | |
385 | 385 | LEFT JOIN device tb ON tb.ID = latest.entity_id |
386 | 386 | LEFT JOIN iotfs_device iot ON tb.ID :: TEXT = iot.tb_device_id |
387 | 387 | <where> | ... | ... |