Commit 311488fa6c96f4d47f7f2a64f5518247d69a674b

Authored by Lesan
1 parent 7925af99

feat: 添加自定义打印模板设置

yudao-module-bpm/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/model/BpmModelMetaInfoVO.java
... ... @@ -100,6 +100,10 @@ public class BpmModelMetaInfoVO {
100 100 @Schema(description = "任务后置通知设置", example = "{}")
101 101 private HttpRequestSetting taskAfterTriggerSetting;
102 102  
  103 + @Schema(description = "自定义打印模板设置", example = "{}")
  104 + @Valid
  105 + private PrintTemplateSetting printTemplateSetting;
  106 +
103 107 @Schema(description = "流程 ID 规则")
104 108 @Data
105 109 @Valid
... ... @@ -180,4 +184,17 @@ public class BpmModelMetaInfoVO {
180 184  
181 185 }
182 186  
  187 + @Schema(description = "自定义打印模板设置")
  188 + @Data
  189 + public static class PrintTemplateSetting {
  190 +
  191 + @Schema(description = "是否自定义打印模板", example = "false")
  192 + @NotNull(message = "是否自定义打印模板不能为空")
  193 + private Boolean enable;
  194 +
  195 + @Schema(description = "打印模板", example = "<p></p>")
  196 + private String template;
  197 +
  198 + }
  199 +
183 200 }
... ...
yudao-module-bpm/src/main/java/cn/iocoder/yudao/module/bpm/dal/dataobject/definition/BpmProcessDefinitionInfoDO.java
... ... @@ -224,4 +224,10 @@ public class BpmProcessDefinitionInfoDO extends BaseDO {
224 224 @TableField(typeHandler = JacksonTypeHandler.class)
225 225 private BpmModelMetaInfoVO.HttpRequestSetting taskAfterTriggerSetting;
226 226  
  227 + /**
  228 + * 自定义打印模板设置
  229 + */
  230 + @TableField(typeHandler = JacksonTypeHandler.class)
  231 + private BpmModelMetaInfoVO.PrintTemplateSetting printTemplateSetting;
  232 +
227 233 }
... ...