Ver código fonte

Merge branch 'data-zyj' of uskycloud/usky-data into master

James 7 meses atrás
pai
commit
a96dc8edf7

+ 1 - 1
data-tsdb-proxy/data-tsdb-proxy-biz/src/main/java/com/usky/demo/service/rocketmq/SimpleContext.java

@@ -30,7 +30,7 @@ public class SimpleContext {
         String deviceId = map_data.get("device_id").toString();
         String productId = map_data.get("product_code").toString().toLowerCase();
         Long timestamp = Long.valueOf(map_data.get("timestamp").toString());
-        String tableName = productId+'_'+deviceId;
+        String tableName = deviceId;
 
         Object tg = JSONObject.toJSONString(map_data.get("tags"));
         JSONObject tag = JSON.parseObject(tg.toString());