Commit d17ae9c055012469abf1c6b521bbdc1352a70cf5

Authored by 房远帅
1 parent 04752003

凯盛数据推送能源管理

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