This commit is contained in:
zfh 2025-02-20 19:03:02 +08:00
parent cfb08c8934
commit 0b9cce98dc
4 changed files with 76 additions and 1 deletions

View File

@ -0,0 +1,40 @@
package com.bonus.material.work.domain;
import lombok.Data;
import lombok.ToString;
@Data
@ToString
public class SysWorkflowRecord {
/**
* 主键
*/
private Integer id;
/**
* 任务id
*/
private Integer taskId;
/**
* 任务类型
*/
private Integer taskType;
/**
* 任务编号
*/
private String taskCode;
/**
* 任务所属审批流
*/
private Integer workflowId;
/**
* 流程执行状态 0待审批 1执行中 2执行完成 3执行中断
*/
private Integer workflowStatus;
}

View File

@ -0,0 +1,10 @@
package com.bonus.material.work.mapper;
import com.bonus.material.work.domain.SysWorkflowConfig;
import com.bonus.material.work.domain.SysWorkflowRecord;
public interface SysWorkflowRecordMapper {
int addSysWorkflowRecord(SysWorkflowRecord sysWorkflowRecord);
}

View File

@ -0,0 +1,25 @@
<?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.bonus.material.work.mapper.SysWorkflowRecordMapper">
<insert id="addSysWorkflowRecord">
insert into sys_workflow_record
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="taskId != null">task_id,</if>
<if test="taskType != null">task_type,</if>
<if test="taskCode != null">task_code,</if>
<if test="workflowId != null">workflow_id,</if>
<if test="workflowStatus != null">workflow_status,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="taskId != null">#{taskId},</if>
<if test="taskType != null">#{taskType},</if>
<if test="taskCode != null">#{taskCode},</if>
<if test="workflowId != null">#{workflowId},</if>
<if test="workflowStatus != null">#{workflowStatus},</if>
</trim>
</insert>
</mapper>

View File

@ -49,7 +49,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
swt.create_time as createTime, swt.is_enable as isEnable swt.create_time as createTime, swt.is_enable as isEnable
from sys_workflow_type swt from sys_workflow_type swt
left join sys_dict_data sdd on swt.task_type =sdd.dict_value left join sys_dict_data sdd on swt.task_type =sdd.dict_value
where sdd.dict_type='countersign_type_name' where sdd.dict_type='tm_task_type'
<if test="typeName != null "> and type_name like concat('%', #{typeName}, '%')</if> <if test="typeName != null "> and type_name like concat('%', #{typeName}, '%')</if>
<if test="taskType != null "> and task_type = #{taskType}</if> <if test="taskType != null "> and task_type = #{taskType}</if>