feat(wave): 更新波形分析服务以支持新的线路ID获取逻辑

- 添加 CsDeviceRegistryFeignClient 和 CsLineFeignClient 依赖注入
- 实现通过 nDid 和 clDid 查询设备注册信息的逻辑
- 添加当设备注册信息为空时通过线路查询的备选方案
- 移除旧的线路ID拼接方式并替换为从设备注册表或线路表获取
- 在统计服务中更新云前置设备线路ID获取方式为从Redis缓存获取
This commit is contained in:
xy
2026-06-26 19:11:02 +08:00
parent f439a4f2c8
commit 47d58e589b
2 changed files with 25 additions and 2 deletions

View File

@@ -219,7 +219,7 @@ public class StatServiceImpl implements IStatService {
}
//云前置设备
else if (Objects.equals(DicDataEnum.DEV_CLD.getCode(),code)) {
lineId = appAutoDataMessage.getId() + appAutoDataMessage.getMsg().getClDid();
lineId = new Gson().fromJson(String.valueOf(redisUtil.getObjectByKey(AppRedisKey.LINE_POSITION+appAutoDataMessage.getId())), Map.class).get(appAutoDataMessage.getMsg().getClDid().toString()).toString();
}
//获取当前设备信息