新增根据流程管控按钮是否可用配置功能. http://172.16.46.63:31560/index.php?m=task&f=view&taskID=551
This commit is contained in:
15
pom.xml
15
pom.xml
@@ -219,7 +219,7 @@
|
||||
<repository>
|
||||
<id>ZT</id>
|
||||
<name>中铜 ZStack 私服</name>
|
||||
<url>http://172.16.46.63:30708/repository/test/</url>
|
||||
<url>http://172.16.46.63:30708/repository/zt-cloud/</url>
|
||||
</repository>
|
||||
<!-- <snapshotRepository>-->
|
||||
<!-- <id>ZT</id>-->
|
||||
@@ -242,6 +242,19 @@
|
||||
<config.version>1.0.0</config.version>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>klw-dev</id>
|
||||
<properties>
|
||||
<env.name>dev</env.name>
|
||||
<!--Nacos 配置-->
|
||||
<config.server-addr>172.16.46.63:30848</config.server-addr>
|
||||
<config.namespace>klw</config.namespace>
|
||||
<config.group>DEFAULT_GROUP</config.group>
|
||||
<config.username>nacos</config.username>
|
||||
<config.password>P@ssword25</config.password>
|
||||
<config.version>1.0.0</config.version>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>env-prod</id>
|
||||
<properties>
|
||||
|
||||
@@ -120,6 +120,7 @@ CREATE TABLE bpm_process_definition_info (
|
||||
simple_model text NULL,
|
||||
sort bigint DEFAULT 0 NULL,
|
||||
visible bit DEFAULT '1' NOT NULL,
|
||||
restart bit DEFAULT '1' NOT NULL,
|
||||
start_user_ids varchar(256) DEFAULT NULL NULL,
|
||||
start_dept_ids varchar(256) DEFAULT NULL NULL,
|
||||
manager_user_ids varchar(256) DEFAULT NULL NULL,
|
||||
@@ -156,6 +157,7 @@ COMMENT ON COLUMN bpm_process_definition_info.form_custom_view_path IS '自定
|
||||
COMMENT ON COLUMN bpm_process_definition_info.simple_model IS 'SIMPLE 设计器模型数据 JSON 格式';
|
||||
COMMENT ON COLUMN bpm_process_definition_info.sort IS '排序值';
|
||||
COMMENT ON COLUMN bpm_process_definition_info.visible IS '是否可见';
|
||||
COMMENT ON COLUMN bpm_process_definition_info.restart IS '是否允许重新发起';
|
||||
COMMENT ON COLUMN bpm_process_definition_info.start_user_ids IS '可发起用户编号数组';
|
||||
COMMENT ON COLUMN bpm_process_definition_info.start_dept_ids IS '可发起部门编号数组';
|
||||
COMMENT ON COLUMN bpm_process_definition_info.manager_user_ids IS '可管理用户编号数组';
|
||||
|
||||
10
sql/dm/流程定义扩展信息表新增字段_20251230.sql
Normal file
10
sql/dm/流程定义扩展信息表新增字段_20251230.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
-- 达梦8数据库DDL脚本
|
||||
-- 为 bpm_process_definition_info 表添加 restart 字段
|
||||
|
||||
-- 是否允许重新发起
|
||||
ALTER TABLE bpm_process_definition_info ADD COLUMN restart bit DEFAULT '1' NOT NULL;
|
||||
|
||||
-- 添加字段注释
|
||||
COMMENT ON COLUMN bpm_process_definition_info.restart IS '是否允许重新发起';
|
||||
|
||||
|
||||
@@ -56,6 +56,10 @@ public class BpmModelMetaInfoVO {
|
||||
@NotNull(message = "是否可见不能为空")
|
||||
private Boolean visible;
|
||||
|
||||
@Schema(description = "是否允许重新发起", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
|
||||
@NotNull(message = "是否允许重新发起不能为空")
|
||||
private Boolean restart;
|
||||
|
||||
@Schema(description = "可发起用户编号数组", example = "[1,2,3]")
|
||||
private List<Long> startUserIds;
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ import com.zt.plat.module.bpm.controller.admin.base.user.UserSimpleBaseVO;
|
||||
import com.zt.plat.module.bpm.controller.admin.definition.vo.model.simple.BpmSimpleModelNodeVO;
|
||||
import com.zt.plat.module.bpm.controller.admin.definition.vo.process.BpmProcessDefinitionRespVO;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
@@ -4,6 +4,7 @@ import com.zt.plat.module.bpm.controller.admin.definition.vo.model.simple.BpmSim
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.Valid;
|
||||
import jakarta.validation.constraints.NotEmpty;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import lombok.Data;
|
||||
|
||||
@Schema(description = "管理后台 - 流程模型的保存 Request VO")
|
||||
|
||||
@@ -87,9 +87,16 @@ public interface BpmProcessInstanceConvert {
|
||||
});
|
||||
}
|
||||
}
|
||||
BpmProcessDefinitionInfoDO processDefinitionInfo = processDefinitionInfoMap.get(respVO.getProcessDefinitionId());
|
||||
if (processDefinitionInfo != null) {
|
||||
// 摘要
|
||||
respVO.setSummary(FlowableUtils.getSummary(processDefinitionInfoMap.get(respVO.getProcessDefinitionId()),
|
||||
respVO.setSummary(FlowableUtils.getSummary(processDefinitionInfo,
|
||||
pageResult.getList().get(i).getProcessVariables()));
|
||||
// 是否可见
|
||||
respVO.getProcessDefinition().setVisible(processDefinitionInfo.getVisible());
|
||||
// 是否可以重新发起流程
|
||||
respVO.getProcessDefinition().setRestart(processDefinitionInfo.getRestart());
|
||||
}
|
||||
// 表单
|
||||
respVO.setFormVariables(pageResult.getList().get(i).getProcessVariables());
|
||||
}
|
||||
|
||||
@@ -129,6 +129,13 @@ public class BpmProcessDefinitionInfoDO extends BaseDO {
|
||||
* 目的:如果 false 不可见,则不展示在“发起流程”的列表里
|
||||
*/
|
||||
private Boolean visible;
|
||||
|
||||
/**
|
||||
* 是否允许重新发起
|
||||
*
|
||||
* 目的:如果 false 则不可以重新发起流程
|
||||
*/
|
||||
private Boolean restart;
|
||||
/**
|
||||
* 排序值
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user