feat(eightwork): 添加当前步骤ID筛选功能
- 在 EightworkInfoPageQry DTO 中新增 eqCurrentStepId 字段用于精确查询 - 在 EightworkInfoMapper.xml 中添加对应的 SQL 查询逻辑 - 实现通过任务日志表关联查询指定步骤ID的工作流数据 - 支持按当前步骤ID进行精确筛选和分页查询master
parent
19059e1d4c
commit
31d94d6234
|
|
@ -44,5 +44,10 @@ public class EightworkInfoPageQry extends PageQuery {
|
|||
|
||||
private String likeCreateName;
|
||||
|
||||
/**
|
||||
* 当前步骤ID筛选(精确查询)
|
||||
*/
|
||||
private Long eqCurrentStepId;
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue