Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,30 @@
WHERE id = #{runId}
</select>

<select id="selectWorkflowHistoryList" parameterType="site.icebang.common.dto.PageParams"
resultType="site.icebang.domain.workflow.dto.WorkflowHistoryDTO">
SELECT
wr.id,
wr.workflow_id,
wr.trace_id,
wr.run_number,
wr.status,
wr.trigger_type,
wr.started_at,
wr.finished_at,
wr.created_by,
wr.created_at
FROM workflow_run wr
WHERE 1=1
ORDER BY wr.created_at DESC
LIMIT #{pageSize} OFFSET #{offset}
</select>

<select id="selectWorkflowHistoryCount" parameterType="site.icebang.common.dto.PageParams"
resultType="int">
SELECT COUNT(*)
FROM workflow_run
WHERE 1=1
</select>

</mapper>
Original file line number Diff line number Diff line change
Expand Up @@ -39,31 +39,4 @@
LEFT JOIN user u ON w.created_by = u.id
WHERE w.id = #{id}
</select>

<select id="selectWorkflowHistoryList" parameterType="site.icebang.common.dto.PageParams"
resultType="site.icebang.domain.workflow.dto.WorkflowHistoryDTO">
SELECT
wr.id,
wr.workflow_id,
wr.trace_id,
wr.run_number,
wr.status,
wr.trigger_type,
wr.started_at,
wr.finished_at,
wr.created_by,
wr.created_at
FROM workflow_run wr
WHERE 1=1
ORDER BY wr.created_at DESC
LIMIT #{pageSize} OFFSET #{offset}
</select>

<select id="selectWorkflowHistoryCount" parameterType="site.icebang.common.dto.PageParams"
resultType="int">
SELECT COUNT(*)
FROM workflow_run
WHERE 1=1
</select>

</mapper>
Loading