This commit is contained in:
wangliwen 2022-05-18 16:30:08 +08:00
parent 248f4aecb7
commit ee641f3008
1 changed files with 7 additions and 0 deletions

View File

@ -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) {