能力下架 npe
This commit is contained in:
parent
27d2f13fc5
commit
d9a83fd41d
|
@ -68,11 +68,13 @@ public class TResourceMountApplyController {
|
||||||
// @RequiresPermissions("resourceMountApply:tresourcemountapply:info")
|
// @RequiresPermissions("resourceMountApply:tresourcemountapply:info")
|
||||||
public Result<TResourceMountApplyDTO> get(@PathVariable("id") Long id) {
|
public Result<TResourceMountApplyDTO> get(@PathVariable("id") Long id) {
|
||||||
TResourceMountApplyDTO data = tResourceMountApplyService.get(id);
|
TResourceMountApplyDTO data = tResourceMountApplyService.get(id);
|
||||||
SysDeptDTO sysDeptDTO = sysDeptService.get(Long.valueOf(data.getDeptId()));
|
if (data.getDeptId() != null) {
|
||||||
if (sysDeptDTO != null) {
|
SysDeptDTO sysDeptDTO = sysDeptService.get(Long.valueOf(data.getDeptId()));
|
||||||
ResourceDTO resourceDTO = data.getResourceDTO();
|
if (sysDeptDTO != null) {
|
||||||
resourceDTO.setDeptName(sysDeptDTO.getName());
|
ResourceDTO resourceDTO = data.getResourceDTO();
|
||||||
data.setResourceDTO(resourceDTO);
|
resourceDTO.setDeptName(sysDeptDTO.getName());
|
||||||
|
data.setResourceDTO(resourceDTO);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return new Result<TResourceMountApplyDTO>().ok(data);
|
return new Result<TResourceMountApplyDTO>().ok(data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue