feat(face): 优化模板渲染状态查询逻辑

- 引入 TaskMapper 依赖以支持任务查询
- 移除带过期时间的模板渲染状态设置方法
- 在缓存缺失时查询最新任务记录以确定渲染状态
- 新增 listLastFaceTemplateTask 方法用于获取最新的人脸模板任务
- 实现根据任务状态自动设置模板渲染状态的逻辑
- 添加对任务状态为 1 和 2 时的渲染状态映射处理
This commit is contained in:
2025-12-17 16:06:35 +08:00
parent 6cd47649fc
commit 171932c05c
4 changed files with 33 additions and 43 deletions

View File

@@ -57,4 +57,6 @@ public interface TaskMapper {
List<TaskRespVO> selectNotRunningByScenicList(String scenicOnly);
List<TaskEntity> selectAllFailed();
TaskEntity listLastFaceTemplateTask(Long faceId, Long templateId);
}