This commit is contained in:
wangliwen 2022-05-13 10:03:57 +08:00
parent 10899efa6c
commit 7edd5ae2fd
2 changed files with 4 additions and 2 deletions

View File

@ -267,10 +267,12 @@ public class ActHistoryService {
dto.setResourceId(abilityApplicationDTO.getResourceId());
} else {
TResourceMountApplyDTO resourceMountApplyDTO = tResourceMountApplyService.get(Long.valueOf(dto.getBusinessKey()));
if (resourceMountApplyDTO != null && resourceMountApplyDTO.getResourceDTO() != null) {
if (resourceMountApplyDTO != null && resourceMountApplyDTO.getResourceDTO() != null
&& resourceMountApplyDTO.getResourceDTO().getId() != null) {
dto.setName(resourceMountApplyDTO.getResourceDTO().getName());
dto.setResourceId(resourceMountApplyDTO.getResourceDTO().getId().toString());
} else {
logger.error("resourceMountApplyDTO:" + resourceMountApplyDTO != null ? resourceMountApplyDTO.toString() : "");
ResourceDTO resourceDTO = resourceService.get(Long.valueOf(dto.getBusinessKey()));
if (resourceDTO != null) {
dto.setName(resourceDTO.getName());

View File

@ -47,7 +47,7 @@ public class TResourceMountApplyDTO implements Serializable {
if (this.parameterContent != null) {
return JSON.parseObject(this.parameterContent, ResourceDTO.class);
}
return resourceDTO;
return null;
}
public void setResourceDTO(ResourceDTO resourceDTO) {