Merge branch 'dev'
This commit is contained in:
commit
2c082a9792
|
@ -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