
7 changed files with 65 additions and 4 deletions
@ -0,0 +1,27 @@ |
|||
package com.yxt.anrui.flowable.api.flow2; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2023/9/10 |
|||
**/ |
|||
@Data |
|||
public class FlowableMessageVo implements Vo { |
|||
private static final long serialVersionUID = 5680927155476931545L; |
|||
@ApiModelProperty("流程id") |
|||
private String proDefId; |
|||
@ApiModelProperty("流程实例id") |
|||
private String procInstId; |
|||
@ApiModelProperty("环节名称") |
|||
private String nodeName; |
|||
@ApiModelProperty("环节id") |
|||
private String taskDefKey; |
|||
@ApiModelProperty("审核人员、被催办人") |
|||
private String assignee; |
|||
@ApiModelProperty("接收时间") |
|||
private String createTime; |
|||
} |
@ -1,4 +1,15 @@ |
|||
<?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="com.yxt.anrui.flowable.biz.flow2.FlowMapper"> |
|||
<select id="getMessageList" resultType="com.yxt.anrui.flowable.api.flow2.FlowableMessageVo"> |
|||
select TIMESTAMPDIFF(SECOND, CREATE_TIME_, NOW()) as yuTime, |
|||
PROC_DEF_ID_ as proDefId, |
|||
PROC_INST_ID_ as procInstId, |
|||
TASK_DEF_KEY_ as taskDefKey, |
|||
NAME_ as nodeName, |
|||
ASSIGNEE_ as assignee, |
|||
CREATE_TIME_ as createTime |
|||
from act_ru_task |
|||
HAVING yuTime > (#{minutes} * 60) |
|||
</select> |
|||
</mapper> |
Loading…
Reference in new issue