fix(aiot): 删除updateAlgoParams方法中的重复代码片段

This commit is contained in:
2026-02-25 14:34:48 +08:00
parent 1ff341a676
commit e06f851561

View File

@@ -287,21 +287,6 @@ public class AiRoiServiceImpl implements IAiRoiService {
} }
} }
// 推送配置到 Edge更新算法参数
String roiId = old.getRoiId();
if (roiId != null) {
AiRoi roi = roiMapper.queryByRoiId(roiId);
if (roi != null && roi.getCameraId() != null) {
try {
redisConfigService.writeDeviceAggregatedConfig(roi.getCameraId(), "UPDATE");
log.info("[AiRoi] 更新算法参数后推送配置到Edgecamera_id={}, bind_id={}", roi.getCameraId(), bind.getBindId());
} catch (Exception e) {
log.error("[AiRoi] 更新算法参数后推送配置失败camera_id={}", roi.getCameraId(), e);
}
}
}
}
private String toJson(Object obj) { private String toJson(Object obj) {
if (obj == null) return null; if (obj == null) return null;
try { try {