feat(REQ-3340) - 移除一些无用逻辑

This commit is contained in:
wangli 2025-02-10 09:56:34 +08:00
parent 31fe7e3f8f
commit ef29a95dfd

View File

@ -208,19 +208,6 @@ public class CustomApproveTaskWithFormCmd extends AbstractCommand<Void> implemen
.deploymentId(relation.getFormDeploymentId())
.singleResult();
Authentication.setAuthenticatedUserId(approver.buildAssigneeId());
// formVariables.entrySet().forEach(e -> {
// if (e.getValue() instanceof Collection) {
// List<String> convertUploads = ((Collection<?>) e.getValue()).stream().map(i -> {
// if (i instanceof String) {
// return UploadFieldDTO.toObject(String.valueOf(i)).toSpecString();
// } else {
// ObjectMapper objectMapper = SpringContextUtils.getBean(ObjectMapper.class);
// return objectMapper.convertValue(i, UploadFieldDTO.class).toSpecString();
// }
// }).collect(Collectors.toList());
// e.setValue(StringUtils.collectionToCommaDelimitedString(convertUploads));
// }
// });
taskService.completeTaskWithForm(taskId, formDefinition.getId(), null, formVariables);
Authentication.setAuthenticatedUserId(null);
} else {