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