fix: 【BPM 工作流】避免在 BpmHttpRequestUtils 中重复添加 processInstanceId 参数

This commit is contained in:
xingyu4j
2025-07-19 16:56:23 +08:00
committed by YunaiV
parent 1978603bd9
commit bfcc1987cb
5 changed files with 7 additions and 5 deletions

View File

@ -108,7 +108,9 @@ public class BpmHttpRequestUtils {
Map<String, Object> processVariables = processInstance.getProcessVariables(); Map<String, Object> processVariables = processInstance.getProcessVariables();
MultiValueMap<String, String> body = new LinkedMultiValueMap<>(); MultiValueMap<String, String> body = new LinkedMultiValueMap<>();
addHttpRequestParam(body, bodySettings, processVariables); addHttpRequestParam(body, bodySettings, processVariables);
if (!body.containsKey("processInstanceId")) { // 避免重复添加
body.add("processInstanceId", processInstance.getId()); body.add("processInstanceId", processInstance.getId());
}
return body; return body;
} }

View File

@ -180,7 +180,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
#end #end
}, },
toolbarConfig: { toolbarConfig: {
refresh: { code: 'query' }, refresh: true,
search: true, search: true,
}, },
} as VxeTableGridOptions<${simpleClassName}Api.${simpleClassName}>, } as VxeTableGridOptions<${simpleClassName}Api.${simpleClassName}>,

View File

@ -131,7 +131,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
enabled: true, enabled: true,
}, },
toolbarConfig: { toolbarConfig: {
refresh: { code: 'query' }, refresh: true,
search: true, search: true,
}, },
#else #else

View File

@ -174,7 +174,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
#end #end
}, },
toolbarConfig: { toolbarConfig: {
refresh: { code: 'query' }, refresh: true,
search: true, search: true,
}, },
} as VxeTableGridOptions<${simpleClassName}Api.${simpleClassName}>, } as VxeTableGridOptions<${simpleClassName}Api.${simpleClassName}>,

View File

@ -125,7 +125,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
enabled: true, enabled: true,
}, },
toolbarConfig: { toolbarConfig: {
refresh: { code: 'query' }, refresh: true,
search: true, search: true,
}, },
#else #else