You've already forked FrameTour-BE
feat(template): 添加人脸样本和视频源为空时的日志提示
- 在视频源查询为空时添加日志记录- 在人脸样本查询为空时添加日志记录 - 提高代码调试和问题排查的便利性
This commit is contained in:
@@ -54,6 +54,7 @@ public class TemplateBiz {
|
||||
if (scanSource) {
|
||||
List<SourceEntity> sourceEntities = sourceMapper.listVideoByScenicFaceRelation(face.getScenicId(), faceId);
|
||||
if (sourceEntities == null || sourceEntities.isEmpty()) {
|
||||
log.info("faceId:{} has no source", faceId);
|
||||
return false;
|
||||
}
|
||||
count = sourceEntities.stream()
|
||||
@@ -65,6 +66,7 @@ public class TemplateBiz {
|
||||
} else {
|
||||
List<FaceSampleEntity> faceSampleList = faceRepository.getFaceSampleList(faceId);
|
||||
if (faceSampleList == null || faceSampleList.isEmpty()) {
|
||||
log.info("faceId:{} has no faceSample", faceId);
|
||||
return false;
|
||||
}
|
||||
count = faceSampleList.stream()
|
||||
|
||||
Reference in New Issue
Block a user