|
@@ -31,7 +31,7 @@ public class DataCollector implements MqttStrategy {
|
|
|
Map<String, Object> fields = new HashMap<>();
|
|
|
Map map_data = JsonUtils.fromJson(mqttBaseVO.getData().toString(), Map.class);
|
|
|
String productCode = map_data.get("product_id").toString().toLowerCase();
|
|
|
- Long timestamp = Long.valueOf(map_data.get("timestamp").toString()+"000");
|
|
|
+ long timestamp = Long.valueOf(map_data.get("timestamp").toString())*1000L+1L;
|
|
|
String deviceId = map_data.get("device_id").toString();
|
|
|
|
|
|
tags.put("device_id",deviceId);
|