部分修改

This commit is contained in:
2024-12-26 14:21:33 +08:00
parent ad87d4396b
commit 64504fdf3b
7 changed files with 70 additions and 52 deletions

View File

@ -106,7 +106,7 @@ public class DynamicTaskGenerator {
if (face.getMatchSampleIds() != null) {
oldMatchedSampleListIds = Arrays.asList(face.getMatchSampleIds().split(","));
}
SearchFaceRespVo searchFace = faceService.searchFace(scenic.getId(), face.getId());
SearchFaceRespVo searchFace = faceService.searchFace(face.getId());
if (oldMatchedSampleListIds.size() == searchFace.getSampleListIds().size()) {
boolean isEqual = true;
for (Long sampleId : searchFace.getSampleListIds()) {

View File

@ -28,7 +28,7 @@ public class FaceCleaner {
List<ScenicRespVO> scenicList = scenicMapper.list(scenicQuery);
scenicList.forEach(scenic -> {
log.info("当前景区{},开始删除人脸样本", scenic.getName());
faceService.batchDeleteFace(scenic.getId());
faceService.batchDeleteExpiredFace(scenic.getId());
});
}
}