You've already forked FrameTour-BE
feat(video): 添加通过faceId查询最新视频记录功能
- 在AppVideoController中新增getLatestByFaceId接口 - 添加VideoRespVO响应对象导入 - 实现通过faceId和可选templateId查询最新视频记录的功能 - 在VideoMapper中定义queryLatestByFaceIdAndTemplateId方法 - 在VideoRepository中实现查询逻辑 - 在VideoMapper.xml中添加对应的SQL查询语句 - 支持根据faceId和templateId条件查询最新视频记录 - 添加相应的日志记录和异常处理机制
This commit is contained in:
@@ -129,4 +129,14 @@ public class VideoRepository {
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过faceId和templateId(可选)查询最新的视频记录
|
||||
* @param faceId 人脸ID
|
||||
* @param templateId 模板ID(可选)
|
||||
* @return 最新的视频记录
|
||||
*/
|
||||
public VideoRespVO queryLatestByFaceIdAndTemplateId(Long faceId, Long templateId) {
|
||||
return videoMapper.queryLatestByFaceIdAndTemplateId(faceId, templateId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user