...
This commit is contained in:
parent
10899efa6c
commit
7edd5ae2fd
|
@ -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());
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue