jinlin
2023-12-12 0dff85a422669f41ef6d8e88fa24bf26ca164cbd
zt/core/src/main/resources/mapper/workflow/WfRunTaskDao.xml
@@ -609,6 +609,22 @@
            AND `STATUS` = 0
            LIMIT 0,1
    </select>
    <select id="getRunFlow" resultType="com.zt.common.entity.FlowInfo">
        select * from (
                          select distinct(a.biz_id) biz_id, a.STEP_MARKER,b.STEP_NO
                          from wf_run_task a
                             ,wf_def_step b
                          where a.STEP_ID = b.id and a.FLOW_CODE ='${flowCode}'
                            <if test="bizIds != null">
                                and a.BIZ_ID in
                                <foreach item="item" collection="bizIds" open="(" separator="," close=")">
                                    #{item}
                                </foreach>
                            </if>
                          order by STEP_NO desc
                      ) c
        group by biz_id
    </select>
    <update id="updateConnect">
        update `wf_run_task`