mirror of
http://git.pig4cloud.com/pig/pigx.git
synced 2026-11-12 13:39:01 +08:00
feat(pigx-flow-biz): 新增流程打印模板功能
- 在 Process 实体类中新增 printTemplate 字段,用于存储 HTML 格式的打印模板 - 新增数据库表字段 print_template,支持流程定义的打印模板存储 - 在 ProcessController 中新增获取和保存打印模板的 REST API 接口 - 在 ProcessInstanceRecordVo 中新增 hasPrintTemplate 字段,标识流程是否配置打印模板 - 优化流程实例列表查询,批量检查打印模板配置状态 - 修复 ProcessInstanceServiceImpl 中重复设置 formData 的问题
This commit is contained in:
1 parent
3c05364e12
commit
410a869db2
6 files changed
+67
-7
No files matched your search
@@ -118,6 +118,18 @@ public class Process {
|
||||
@TableField("range_show")
|
||||
private String rangeShow;
|
||||
|
||||
/**
|
||||
* 打印模板 HTML格式的打印模板内容,支持 mention 变量占位符
|
||||
*/
|
||||
@TableField("print_template")
|
||||
private String printTemplate;
|
||||
|
||||
/**
|
||||
* 租户ID 多租户隔离字段,用于区分不同租户的流程定义
|
||||
*/
|
||||
@TableField("tenant_id")
|
||||
private Long tenantId;
|
||||
|
||||
/**
|
||||
* 主键ID 使用雪花算法生成的分布式ID
|
||||
*/
|
||||
|
||||
+9
@@ -35,4 +35,13 @@ public class ProcessInstanceRecordVo extends ProcessInstanceRecord {
|
||||
*/
|
||||
private String resubmitTaskId;
|
||||
|
||||
/**
|
||||
* 是否配置了打印模板
|
||||
* <p>
|
||||
* true表示该流程定义已配置打印模板,前端显示打印按钮;
|
||||
* false或null表示未配置打印模板,前端不显示打印按钮
|
||||
* </p>
|
||||
*/
|
||||
private Boolean hasPrintTemplate;
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user