Commit d17ae9c055012469abf1c6b521bbdc1352a70cf5

Authored by 房远帅
1 parent 04752003

凯盛数据推送能源管理

@@ -166,9 +166,8 @@ public class KSDeviceReportService { @@ -166,9 +166,8 @@ public class KSDeviceReportService {
166 int failCount = 0; 166 int failCount = 0;
167 List<String> failedDevices = new ArrayList<>(); 167 List<String> failedDevices = new ArrayList<>();
168 Map<Object, String> map = new HashMap<>(); 168 Map<Object, String> map = new HashMap<>();
169 - map.put(1,"devid");  
170 - map.put(2,"zll");  
171 - map.put(3,"ssll"); 169 + map.put(1,"zll");
  170 + map.put(2,"ssll");
172 171
173 172
174 for (int i = 0; i < needSyncDataList.size(); i++) { 173 for (int i = 0; i < needSyncDataList.size(); i++) {
@@ -193,7 +192,7 @@ public class KSDeviceReportService { @@ -193,7 +192,7 @@ public class KSDeviceReportService {
193 192
194 for (int j = 1; j < dataList.size(); j++) { 193 for (int j = 1; j < dataList.size(); j++) {
195 Map<String, Object> properties = new HashMap<>(5); 194 Map<String, Object> properties = new HashMap<>(5);
196 - Object o = dataList.get(j).toString(); 195 + Object o = dataList.get(j);
197 if (o == null) { 196 if (o == null) {
198 continue; 197 continue;
199 } 198 }
@@ -90,17 +90,14 @@ ks: @@ -90,17 +90,14 @@ ks:
90 90
91 selectSql1: "SELECT 91 selectSql1: "SELECT
92 de.sn AS sn, 92 de.sn AS sn,
93 - tkl1.dbl_v AS devid,  
94 - tkl2.dbl_v AS zll,  
95 - tkl3.dbl_v AS ssll 93 + tkl1.dbl_v AS zll,
  94 + tkl2.dbl_v AS ssll
96 FROM 95 FROM
97 device de 96 device de
98 LEFT JOIN ts_kv_latest tkl1 ON de.id = tkl1.entity_id 97 LEFT JOIN ts_kv_latest tkl1 ON de.id = tkl1.entity_id
99 - AND tkl1.key = 58 98 + AND tkl1.key = 83
100 LEFT JOIN ts_kv_latest tkl2 ON de.id = tkl2.entity_id 99 LEFT JOIN ts_kv_latest tkl2 ON de.id = tkl2.entity_id
101 - AND tkl2.key = 83  
102 - LEFT JOIN ts_kv_latest tkl3 ON de.id = tkl3.entity_id  
103 - AND tkl3.key = 84 100 + AND tkl2.key = 84
104 WHERE 101 WHERE
105 de.organization_id='1697500a-dc11-45cc-88f5-2ad47472a9bb' 102 de.organization_id='1697500a-dc11-45cc-88f5-2ad47472a9bb'
106 AND de.device_profile_id = '4e404b10-ffe7-11f0-926f-2f3182abc65f'" 103 AND de.device_profile_id = '4e404b10-ffe7-11f0-926f-2f3182abc65f'"