feat(eightwork): 添加当前步骤ID筛选功能

- 在 EightworkInfoPageQry DTO 中新增 eqCurrentStepId 字段用于精确查询
- 在 EightworkInfoMapper.xml 中添加对应的 SQL 查询逻辑
- 实现通过任务日志表关联查询指定步骤ID的工作流数据
- 支持按当前步骤ID进行精确筛选和分页查询
master
fangjiakai 2026-03-18 11:39:27 +08:00
parent 19059e1d4c
commit 31d94d6234
2 changed files with 12 additions and 0 deletions

View File

@ -44,5 +44,10 @@ public class EightworkInfoPageQry extends PageQuery {
private String likeCreateName;
/**
* ID
*/
private Long eqCurrentStepId;
}

View File

@ -58,6 +58,13 @@
<if test="params.likeCreateName != null and params.likeCreateName != ''">
and t.create_name like concat('%', #{params.likeCreateName}, '%')
</if>
<if test="params.eqCurrentStepId != null">
and exists (select 1
from task_log log
where log.work_id = t.work_id
and log.status = 0
and log.step_id = #{params.eqCurrentStepId})
</if>
order by t.create_time desc
</select>