| | |
| | | <?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, |
| | |
| | | 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 |
| | | |
| | |
| | | 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 |
| | | </select> |
| | | |
| | | </mapper> |