From cbc1030043989a54c4a5fdd8c28a503f4aff4bc8 Mon Sep 17 00:00:00 2001 From: gssong <1742057357@qq.com> Date: 星期二, 02 四月 2024 20:52:52 +0800 Subject: [PATCH] add 添加流程版本 --- ruoyi-modules/ruoyi-workflow/src/main/resources/mapper/workflow/ActTaskMapper.xml | 38 ++++++++++++++++++++++++++++---------- 1 files changed, 28 insertions(+), 10 deletions(-) diff --git a/ruoyi-modules/ruoyi-workflow/src/main/resources/mapper/workflow/ActTaskMapper.xml b/ruoyi-modules/ruoyi-workflow/src/main/resources/mapper/workflow/ActTaskMapper.xml index 64d90e6..0a8c697 100644 --- a/ruoyi-modules/ruoyi-workflow/src/main/resources/mapper/workflow/ActTaskMapper.xml +++ b/ruoyi-modules/ruoyi-workflow/src/main/resources/mapper/workflow/ActTaskMapper.xml @@ -3,7 +3,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="org.dromara.workflow.mapper.ActTaskMapper"> - <resultMap type="org.dromara.workflow.domain.vo.TaskVo" id="TaskWaitingVoResult"> + <resultMap type="org.dromara.workflow.domain.vo.TaskVo" id="TaskVoResult"> <result property="id" column="ID_"/> <result property="name" column="NAME_"/> <result property="description" column="DESCRIPTION_"/> @@ -15,6 +15,7 @@ <result property="taskDefinitionId" column="TASK_DEF_ID_"/> <result property="processDefinitionId" column="PROC_DEF_ID_"/> <result property="createTime" column="CREATE_TIME_"/> + <result property="startTime" column="START_TIME_"/> <result property="endTime" column="END_TIME_"/> <result property="taskDefinitionKey" column="TASK_DEF_KEY_"/> <result property="dueDate" column="DUE_DATE_"/> @@ -26,30 +27,47 @@ <result property="businessStatus" column="BUSINESS_STATUS_"/> <result property="processDefinitionName" column="processDefinitionName"/> <result property="processDefinitionKey" column="processDefinitionName"/> + <result property="businessKey" column="BUSINESS_KEY_"/> </resultMap> - <select id="getTaskWaitByPage" resultMap="TaskWaitingVoResult"> + <select id="getTaskWaitByPage" resultMap="TaskVoResult"> select * from (SELECT RES.*, AHP.BUSINESS_STATUS_, - ARP.NAME_ as processDefinitionName, - ARP.KEY_ as processDefinitionKey, - LINK.USER_ID_, - LINK.GROUP_ID_ + AHP.BUSINESS_KEY_, + ARP.NAME_ AS processDefinitionName, + ARP.KEY_ AS processDefinitionKey, + ARP.VERSION_ AS processDefinitionVersion FROM ACT_RU_TASK RES INNER JOIN ACT_HI_PROCINST AHP ON RES.PROC_INST_ID_ = AHP.PROC_INST_ID_ INNER JOIN ACT_RE_PROCDEF ARP ON ARP.ID_ = RES.PROC_DEF_ID_ - LEFT JOIN ACT_RU_IDENTITYLINK LINK ON LINK.TASK_ID_ = RES.ID_ AND LINK.TYPE_ = 'candidate' - WHERE RES.PARENT_TASK_ID_ is null + WHERE RES.PARENT_TASK_ID_ IS NULL ORDER BY RES.CREATE_TIME_ DESC) t ${ew.getCustomSqlSegment} </select> - <select id="getTaskCopyByPage" resultMap="TaskWaitingVoResult"> + <select id="getTaskFinishByPage" resultMap="TaskVoResult"> + select * + from (SELECT HTI.*, + AHP.BUSINESS_STATUS_, + AHP.BUSINESS_KEY_, + ARP.NAME_ AS processDefinitionName, + ARP.KEY_ AS processDefinitionKey, + ARP.VERSION_ AS processDefinitionVersion + FROM ACT_HI_TASKINST HTI + INNER JOIN ACT_HI_PROCINST AHP ON HTI.PROC_INST_ID_ = AHP.PROC_INST_ID_ + INNER JOIN ACT_RE_PROCDEF ARP ON ARP.ID_ = HTI.PROC_DEF_ID_ + WHERE HTI.PARENT_TASK_ID_ IS NULL + ORDER BY HTI.START_TIME_ DESC) t ${ew.getCustomSqlSegment} + </select> + + <select id="getTaskCopyByPage" resultMap="TaskVoResult"> select * from (SELECT AHT.*, AHP.BUSINESS_STATUS_, + AHP.BUSINESS_KEY_, ARP.NAME_ as processDefinitionName, - ARP.KEY_ as processDefinitionKey + ARP.KEY_ as processDefinitionKey, + ARP.VERSION_ AS processDefinitionVersion FROM ACT_HI_TASKINST AHT INNER JOIN ACT_HI_PROCINST AHP ON AHT.PROC_INST_ID_ = AHP.PROC_INST_ID_ INNER JOIN ACT_RE_PROCDEF ARP ON ARP.ID_ = AHT.PROC_DEF_ID_ -- Gitblit v1.9.3