Commit 3fe02e5ca8da39cb132be77431594214d515af06

Authored by lifeontrip
1 parent 10652fbf

fix(DEFECT-669): 设备属性出现null选项的问题修复

@@ -380,8 +380,8 @@ @@ -380,8 +380,8 @@
380 <select id="findDeviceKeys" resultType="string"> 380 <select id="findDeviceKeys" resultType="string">
381 SELECT 381 SELECT
382 DISTINCT base.key as keyName 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 LEFT JOIN device tb ON tb.ID = latest.entity_id 385 LEFT JOIN device tb ON tb.ID = latest.entity_id
386 LEFT JOIN iotfs_device iot ON tb.ID :: TEXT = iot.tb_device_id 386 LEFT JOIN iotfs_device iot ON tb.ID :: TEXT = iot.tb_device_id
387 <where> 387 <where>