Merge branch 'master' into docker_package

This commit is contained in:
wangliwen 2022-08-05 12:48:21 +08:00
commit 0d50ad1e4b
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 : "--");
}
});