npe
This commit is contained in:
parent
5ac3e333c2
commit
72947ca394
|
@ -68,7 +68,7 @@ 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);
|
||||||
if (data.getDeptId() != null) {
|
if (data != null && data.getDeptId() != null) {
|
||||||
SysDeptDTO sysDeptDTO = sysDeptService.get(Long.valueOf(data.getDeptId()));
|
SysDeptDTO sysDeptDTO = sysDeptService.get(Long.valueOf(data.getDeptId()));
|
||||||
if (sysDeptDTO != null) {
|
if (sysDeptDTO != null) {
|
||||||
ResourceDTO resourceDTO = data.getResourceDTO();
|
ResourceDTO resourceDTO = data.getResourceDTO();
|
||||||
|
|
Loading…
Reference in New Issue