Skip to content

Commit

Permalink
Update RecordServiceImpl.java
Browse files Browse the repository at this point in the history
  • Loading branch information
dazzlingn authored Apr 26, 2021
1 parent 9186fd0 commit b34d08a
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,7 @@ public void startRecord(Integer taskExecutionId, Integer recordId) throws Except
if (!taskExecutionOptional.isPresent()) {
throw new BaseException("录制失败,找不到执行记录:taskExecutionId=" + taskExecutionId);
}
//拿到任务执行id后,再创建录制,先通过task_id从数据库查询该任务下的接口个数,方法:从task_api_relation表格中查询
Optional<Record> byId = recordRepository.findById(recordId);
Optional<TaskApiRelation> byTaskId = taskApiRelationRepository.findByTaskId(taskId);
log.info(byTaskId.get().getApiId().toString());
byId.get();

//创建录制对象成功,创建录制详情
Optional<List<TaskApiRelation>> taskApiRelationList = taskApiRelationRepository.findAllByTaskId(taskId);
if (!taskApiRelationList.isPresent()) {
Expand Down

0 comments on commit b34d08a

Please sign in to comment.