refactor(kafka): 修改人脸库分组命名规则

- 将人脸库分组名称从 "ai-cam-{deviceId}" 更改为 "AiCam{deviceId}"
- 更新 FaceProcessingKafkaService 中的数据库名称生成逻辑
- 同步修改 FaceDetectLogAiCamServiceImpl 中的数据库名称使用方式
This commit is contained in:
2025-12-05 16:01:46 +08:00
parent 71a8d3b539
commit 33c3a194ca
2 changed files with 3 additions and 3 deletions

View File

@@ -471,8 +471,8 @@ public class FaceProcessingKafkaService {
return;
}
// 使用 "ai-cam-" + deviceId 作为人脸库分组
String dbName = "ai-cam-" + deviceId;
// 使用 "AiCam" + deviceId 作为人脸库分组
String dbName = "AiCam" + deviceId;
taskFaceService.assureFaceDb(adapter, dbName);
String faceUniqueId = faceSampleId.toString();

View File

@@ -21,7 +21,7 @@ public class FaceDetectLogAiCamServiceImpl implements FaceDetectLogAiCamService
@Override
public SearchFaceResp searchAndLog(Long scenicId, Long deviceId, Long faceSampleId, String faceUrl, IFaceBodyAdapter adapter) {
String dbName = "ai-cam-" + deviceId;
String dbName = "AiCam" + deviceId;
SearchFaceResp resp = null;
try {