资源部门被删
This commit is contained in:
parent
0666081fdc
commit
c065c04703
|
@ -133,7 +133,7 @@ public class ResourceController {
|
||||||
page.getList().forEach(item -> {
|
page.getList().forEach(item -> {
|
||||||
item.setInfoList(resourceService.selectAttrsByResourceId(item.getId()));
|
item.setInfoList(resourceService.selectAttrsByResourceId(item.getId()));
|
||||||
if (item.getDeptId() != null) {
|
if (item.getDeptId() != null) {
|
||||||
String deptName = sysDeptService.get(item.getDeptId()).getName();
|
String deptName = sysDeptService.get(item.getDeptId()) == null ? null : sysDeptService.get(item.getDeptId()).getName();
|
||||||
item.setDeptName(StringUtils.isNotBlank(deptName) ? deptName : "--");
|
item.setDeptName(StringUtils.isNotBlank(deptName) ? deptName : "--");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue