Search in sources :

Example 1 with BatchTaskDTO

use of com.dtstack.taier.dao.dto.BatchTaskDTO in project Taier by DTStack.

the class BatchTaskService method getFlowWorkSubTasks.

/**
 * 获取任务流下的所有子任务
 *
 * @param taskId
 * @return
 */
public List<BatchTask> getFlowWorkSubTasks(final Long taskId) {
    BatchTaskDTO batchTaskDTO = new BatchTaskDTO();
    batchTaskDTO.setIsDeleted(Deleted.NORMAL.getStatus());
    batchTaskDTO.setFlowId(taskId);
    PageQuery<BatchTaskDTO> pageQuery = new PageQuery<>(batchTaskDTO);
    List<BatchTask> batchTasks = this.developTaskDao.generalQuery(pageQuery);
    return batchTasks;
}
Also used : BatchTaskDTO(com.dtstack.taier.dao.dto.BatchTaskDTO) PageQuery(com.dtstack.taier.dao.pager.PageQuery) BatchTask(com.dtstack.taier.dao.domain.BatchTask)

Aggregations

BatchTask (com.dtstack.taier.dao.domain.BatchTask)1 BatchTaskDTO (com.dtstack.taier.dao.dto.BatchTaskDTO)1 PageQuery (com.dtstack.taier.dao.pager.PageQuery)1