。。。
This commit is contained in:
parent
36ad699d38
commit
1047569a77
|
@ -133,7 +133,8 @@ public class ResourceController {
|
|||
page.getList().forEach(item -> {
|
||||
item.setInfoList(resourceService.selectAttrsByResourceId(item.getId()));
|
||||
if (item.getDeptId() != null) {
|
||||
String deptName = sysDeptService.get(item.getDeptId()) == null ? null : sysDeptService.get(item.getDeptId()).getName();
|
||||
SysDeptDTO deptDTO = sysDeptService.get(item.getDeptId());
|
||||
String deptName = deptDTO == null ? null : deptDTO.getName();
|
||||
item.setDeptName(StringUtils.isNotBlank(deptName) ? deptName : "--");
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue