yangys
2025-09-29 4c7296d45efe849dc70a3b2e2240c905481a91c9
blade-service/blade-mdm/src/main/java/org/springblade/mdm/flow/mapper/DoneMapper.xml
@@ -1,10 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.springblade.mdm.flow.mapper.DoneMapper">
    <!--查询用户已办列表-->
    <select id="pageQuery" resultType="org.springblade.mdm.flow.vo.FlowVO">
        SELECT
        HTI.ID_ AS taskId,
@@ -18,7 +15,9 @@
        HPI.BUSINESS_KEY_ AS businessKey,
        HPD.NAME_ AS processDefinitionName,
        HPD.KEY_ as processDefinitionKey,
        HPI.START_TIME_ as processCreateTime
        HPI.START_TIME_ as processCreateTime,
        HTI.TASK_DEF_KEY_ as taskDefinitionKey,
        case when HPI.END_TIME_ is null then 'false' else 'true' end as processIsFinished
        FROM
        ACT_HI_TASKINST HTI
@@ -54,6 +53,18 @@
                    or (VAR.name_='productModel' and TEXT_ like  #{patternVal})
                )
            </if>
            <if test="query.status != null and query.status != 0">
                <choose>
                    <when test="query.status == 1">
                        AND HPI.END_TIME_ is null
                    </when>
                    <otherwise>
                        AND HPI.END_TIME_ is not null
                    </otherwise>
                </choose>
            </if>
         </where>
        )
        order by HTI.END_TIME_ desc