refactor(video): 将视频实体中的workerId字段改为faceId

- 修改VideoEntity类中字段workerId为faceId,并更新注释
- 更新TaskTaskServiceImpl中设置视频信息的逻辑,使用faceId替代workerId
- 修改VideoMapper.xml中插入视频记录的SQL语句,字段由workerId改为faceId
- 调整VideoMapper.xml中更新视频记录的SQL条件,使用faceId进行筛选
- 更新VideoMapper.xml中查询视频列表和单个视频详情的SQL语句,字段名由workerId改为faceId
- 优化查询条件中对faceId的处理逻辑,直接关联video表的face_id字段
This commit is contained in:
2025-12-15 16:50:17 +08:00
parent 0665eef37d
commit 7348994427
4 changed files with 11 additions and 20 deletions

View File

@@ -492,7 +492,7 @@ public class TaskTaskServiceImpl implements TaskService {
video.setScenicId(task.getScenicId());
video.setTemplateId(task.getTemplateId());
video.setTaskId(taskId);
video.setWorkerId(worker.getId());
video.setFaceId(task.getFaceId());
video.setVideoUrl(task.getVideoUrl());
video.setCreateTime(new Date());
if (req.getVideoInfo() != null) {