From ee641f3008c30303e5220c0f38465221a8fbba19 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Wed, 18 May 2022 16:30:08 +0800 Subject: [PATCH] ... --- .../renren/modules/activiti/service/ActHistoryService.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/renren-admin/src/main/java/io/renren/modules/activiti/service/ActHistoryService.java b/renren-admin/src/main/java/io/renren/modules/activiti/service/ActHistoryService.java index 7b83c9c3..0ae84061 100644 --- a/renren-admin/src/main/java/io/renren/modules/activiti/service/ActHistoryService.java +++ b/renren-admin/src/main/java/io/renren/modules/activiti/service/ActHistoryService.java @@ -271,6 +271,13 @@ public class ActHistoryService { && resourceMountApplyDTO.getResourceDTO().getId() != null) { dto.setName(resourceMountApplyDTO.getResourceDTO().getName()); dto.setResourceId(resourceMountApplyDTO.getResourceDTO().getId().toString()); + if (resourceMountApplyDTO.getResourceId() != null) { + ResourceDTO resourceDTO = resourceService.get(resourceMountApplyDTO.getResourceId()); + if (resourceDTO != null) { + dto.setName(resourceDTO.getName()); + dto.setResourceId(resourceDTO.getId().toString()); + } + } } else { ResourceDTO resourceDTO = resourceService.get(Long.valueOf(dto.getBusinessKey())); if (resourceDTO != null) {