Commit 31c2e81dd286b9088c5feb4b3ac4abd88ac6519c
1 parent
56f3177a
【功能评审】Bpm:审批签名
Showing
6 changed files
with
9 additions
and
4 deletions
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/definition/vo/model/simple/BpmSimpleModelNodeVO.java
| ... | ... | @@ -119,7 +119,7 @@ public class BpmSimpleModelNodeVO { |
| 119 | 119 | @Schema(description = "路由分支组", example = "[]") |
| 120 | 120 | private List<RouterCondition> routerGroups; |
| 121 | 121 | |
| 122 | - @Schema(description = "默认分支 ID", example = "Flow_xxx") | |
| 122 | + @Schema(description = "默认分支 ID", example = "Flow_xxx", hidden = true) // 由后端生成,所以 hidden = true | |
| 123 | 123 | private String defaultFlowId; // 仅用于路由分支节点 BpmSimpleModelNodeType.ROUTER_BRANCH_NODE |
| 124 | 124 | |
| 125 | 125 | @Schema(description = "任务监听器") | ... | ... |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/task/vo/instance/BpmApprovalDetailRespVO.java
| ... | ... | @@ -101,7 +101,8 @@ public class BpmApprovalDetailRespVO { |
| 101 | 101 | @Schema(description = "审批意见", example = "同意") |
| 102 | 102 | private String reason; |
| 103 | 103 | |
| 104 | - @Schema(description = "签名", example = "http://xxx") | |
| 104 | + // TODO @lesan:改成 signPicUrl 会好点 | |
| 105 | + @Schema(description = "签名", example = "https://www.iocoder.cn/sign.png") | |
| 105 | 106 | private String sign; |
| 106 | 107 | |
| 107 | 108 | } | ... | ... |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/controller/admin/task/vo/task/BpmTaskApproveReqVO.java
| ... | ... | @@ -18,7 +18,8 @@ public class BpmTaskApproveReqVO { |
| 18 | 18 | @NotEmpty(message = "审批意见不能为空") |
| 19 | 19 | private String reason; |
| 20 | 20 | |
| 21 | - @Schema(description = "签名", example = "http://xxx") | |
| 21 | + // TODO @lesan:改成 signPicUrl 会好点 | |
| 22 | + @Schema(description = "签名", example = "https://www.iocoder.cn/sign.png") | |
| 22 | 23 | private String sign; |
| 23 | 24 | |
| 24 | 25 | @Schema(description = "变量实例(动态表单)", requiredMode = Schema.RequiredMode.REQUIRED) | ... | ... |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/framework/flowable/core/enums/BpmnVariableConstants.java
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/framework/flowable/core/util/BpmnModelUtils.java
| ... | ... | @@ -349,7 +349,8 @@ public class BpmnModelUtils { |
| 349 | 349 | } |
| 350 | 350 | |
| 351 | 351 | public static void addSignEnable(Boolean signEnable, FlowElement userTask) { |
| 352 | - addExtensionElement(userTask, SIGN_ENABLE, ObjUtil.isNotNull(signEnable) ? signEnable.toString() : "false"); | |
| 352 | + addExtensionElement(userTask, SIGN_ENABLE, | |
| 353 | + ObjUtil.isNotNull(signEnable) ? signEnable.toString() : Boolean.FALSE.toString()); | |
| 353 | 354 | } |
| 354 | 355 | |
| 355 | 356 | public static Boolean parseSignEnable(BpmnModel bpmnModel, String flowElementId) { | ... | ... |
yudao-module-bpm/yudao-module-bpm-biz/src/main/java/cn/iocoder/yudao/module/bpm/framework/flowable/core/util/FlowableUtils.java
| ... | ... | @@ -213,6 +213,7 @@ public class FlowableUtils { |
| 213 | 213 | return (String) task.getTaskLocalVariables().get(BpmnVariableConstants.TASK_VARIABLE_REASON); |
| 214 | 214 | } |
| 215 | 215 | |
| 216 | + // TODO @lesan:这个方法名,也改咧 | |
| 216 | 217 | public static String getTaskSign(TaskInfo task) { |
| 217 | 218 | return (String) task.getTaskLocalVariables().get(BpmnVariableConstants.TASK_VARIABLE_SIGN); |
| 218 | 219 | } | ... | ... |