You've already forked FrameTour-BE
名称
This commit is contained in:
@@ -14,9 +14,9 @@ public interface TaskService {
|
||||
|
||||
TemplateRespVO workerGetTemplate(Long templateId, WorkerAuthReqVo req);
|
||||
|
||||
void createTaskByFaceIdAndTempalteId(Long faceId, Long templateId);
|
||||
void createTaskByFaceIdAndTemplateId(Long faceId, Long templateId);
|
||||
|
||||
void createTaskByFaceIdAndTempalteId(Long faceId, Long templateId, int automatic);
|
||||
void createTaskByFaceIdAndTemplateId(Long faceId, Long templateId, int automatic);
|
||||
|
||||
void taskSuccess(Long taskId, TaskSuccessReqVo req);
|
||||
|
||||
@@ -28,7 +28,7 @@ public interface TaskService {
|
||||
|
||||
void forceCreateTaskByFaceIdAndTempalteId(Long faceId, Long templateId);
|
||||
|
||||
void autoCreateTaskByFaceId(Long id);
|
||||
void autoCreateTaskByFaceId(Long faceId);
|
||||
|
||||
Date getTaskShotDate(Long taskId);
|
||||
|
||||
|
@@ -250,7 +250,7 @@ public class TaskTaskServiceImpl implements TaskService {
|
||||
|
||||
@Override
|
||||
public void forceCreateTaskByFaceIdAndTempalteId(Long faceId, Long templateId) {
|
||||
createTaskByFaceIdAndTempalteIdInternal(faceId, templateId, 0, true);
|
||||
createTaskByFaceIdAndTemplateIdInternal(faceId, templateId, 0, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -286,22 +286,22 @@ public class TaskTaskServiceImpl implements TaskService {
|
||||
}
|
||||
if (Integer.valueOf(3).equals(scenicConfig.getBookRoutine()) || Integer.valueOf(4).equals(scenicConfig.getBookRoutine())) {
|
||||
// 生成全部视频的逻辑
|
||||
templateList.forEach(template -> createTaskByFaceIdAndTempalteId(faceId, template.getId(), 1));
|
||||
templateList.forEach(template -> createTaskByFaceIdAndTemplateId(faceId, template.getId(), 1));
|
||||
} else {
|
||||
createTaskByFaceIdAndTempalteId(faceId, templateList.getFirst().getId(), 1);
|
||||
createTaskByFaceIdAndTemplateId(faceId, templateList.getFirst().getId(), 1);
|
||||
}
|
||||
}
|
||||
@Override
|
||||
public void createTaskByFaceIdAndTempalteId(Long faceId, Long templateId) {
|
||||
createTaskByFaceIdAndTempalteId(faceId, templateId, 0);
|
||||
public void createTaskByFaceIdAndTemplateId(Long faceId, Long templateId) {
|
||||
createTaskByFaceIdAndTemplateId(faceId, templateId, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void createTaskByFaceIdAndTempalteId(Long faceId, Long templateId, int automatic) {
|
||||
createTaskByFaceIdAndTempalteIdInternal(faceId, templateId, automatic, false);
|
||||
public void createTaskByFaceIdAndTemplateId(Long faceId, Long templateId, int automatic) {
|
||||
createTaskByFaceIdAndTemplateIdInternal(faceId, templateId, automatic, false);
|
||||
}
|
||||
|
||||
private void createTaskByFaceIdAndTempalteIdInternal(Long faceId, Long templateId, int automatic, boolean forceCreate) {
|
||||
private void createTaskByFaceIdAndTemplateIdInternal(Long faceId, Long templateId, int automatic, boolean forceCreate) {
|
||||
FaceEntity face = faceRepository.getFace(faceId);
|
||||
if (face == null) {
|
||||
log.info("faceId:{} is not exist", faceId);
|
||||
|
Reference in New Issue
Block a user