。。。

This commit is contained in:
wangliwen 2022-08-05 12:48:03 +08:00
parent 36ad699d38
commit 1047569a77
1 changed files with 2 additions and 1 deletions

View File

@ -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 : "--");
}
});