Commit bfcc1987cb1e8675f7e8d540c55a5d5a5be09c64
Committed by
YunaiV
1 parent
1978603b
fix: 【BPM 工作流】避免在 BpmHttpRequestUtils 中重复添加 processInstanceId 参数
Showing
5 changed files
with
7 additions
and
5 deletions
yudao-module-bpm/src/main/java/cn/iocoder/yudao/module/bpm/framework/flowable/core/util/BpmHttpRequestUtils.java
| ... | ... | @@ -108,7 +108,9 @@ public class BpmHttpRequestUtils { |
| 108 | 108 | Map<String, Object> processVariables = processInstance.getProcessVariables(); |
| 109 | 109 | MultiValueMap<String, String> body = new LinkedMultiValueMap<>(); |
| 110 | 110 | addHttpRequestParam(body, bodySettings, processVariables); |
| 111 | - body.add("processInstanceId", processInstance.getId()); | |
| 111 | + if (!body.containsKey("processInstanceId")) { // 避免重复添加 | |
| 112 | + body.add("processInstanceId", processInstance.getId()); | |
| 113 | + } | |
| 112 | 114 | return body; |
| 113 | 115 | } |
| 114 | 116 | ... | ... |
yudao-module-infra/src/main/resources/codegen/vue3_vben5_antd/schema/views/index.vue.vm
yudao-module-infra/src/main/resources/codegen/vue3_vben5_antd/schema/views/modules/list_sub_erp.vue.vm
yudao-module-infra/src/main/resources/codegen/vue3_vben5_ele/schema/views/index.vue.vm
yudao-module-infra/src/main/resources/codegen/vue3_vben5_ele/schema/views/modules/list_sub_erp.vue.vm