| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.qianwen.mdc.collect.config.IotDBSessionConfig; |
| | | import com.qianwen.mdc.collect.constants.IOTDBConstant; |
| | | import com.qianwen.mdc.collect.domain.TelemetryData; |
| | | import com.qianwen.mdc.collect.domain.TelemetryDataItem; |
| | | import com.qianwen.mdc.collect.utils.redis.RedisUtil; |
| | |
| | | public class CollectDataService { |
| | | private static final Logger log = LoggerFactory.getLogger(CollectDataService.class); |
| | | |
| | | private String DB_PREFIX = "root.f2."; |
| | | //private String DB_PREFIX = "root.f2."; |
| | | private static final Map<Integer, String> PROCESS_PARAM_MAP = new HashMap<>(); |
| | | @Autowired |
| | | private IotDBSessionConfig iotdbConfig; |
| | |
| | | } |
| | | |
| | | String generateDeviceId(long workstationId,String propertyName) { |
| | | return DB_PREFIX+TEMPLATE_NAME + "_" + workstationId+"_"+propertyName; |
| | | return IOTDBConstant.DB_PREFIX+TEMPLATE_NAME + "_" + workstationId+"_"+propertyName; |
| | | } |
| | | } |
| | | |