use of com.dtstack.taier.dao.domain.BatchTaskTask in project Taier by DTStack.
the class BatchTaskTaskService method getTaskTasksByTaskIdAndTasks.
/**
* 根据taskId和List<BatchTask>生成List<BatchTaskTask>
* @param taskId
* @param tasks
* @return
*/
private List<BatchTaskTask> getTaskTasksByTaskIdAndTasks(Long taskId, List<BatchTask> tasks) {
List<BatchTaskTask> taskTasks = Lists.newArrayList();
for (BatchTask task : tasks) {
BatchTaskTask taskTask = new BatchTaskTask();
taskTask.setParentTaskId(task.getId());
taskTask.setTenantId(task.getTenantId());
taskTask.setTaskId(taskId);
taskTasks.add(taskTask);
}
return taskTasks;
}
Aggregations