|
@@ -57,9 +57,17 @@ public class SysDeptOrganServiceImpl implements SysDeptOrganService {
|
|
|
wrapperT.eq(SysDeptOrgan::getDeptId, sysDept.getParentId());
|
|
|
organsT = deptOrganMapper.selectList(wrapperT);
|
|
|
SysDept sysDeptTwo = sysDeptMapper.selectDeptById(sysDept.getParentId());
|
|
|
- hashMap.put(sysDeptTwo.getDeptName(), organsT);
|
|
|
+ if (ObjectUtils.isEmpty(organsT)) {
|
|
|
+ hashMap.put(sysDeptTwo.getDeptName() + "(暂无数据)", organsT);
|
|
|
+ } else {
|
|
|
+ hashMap.put(sysDeptTwo.getDeptName(), organsT);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (ObjectUtils.isEmpty(sysDept)) {
|
|
|
+ hashMap.put(sysDept.getDeptName() + "(暂无数据)", organs);
|
|
|
+ } else {
|
|
|
+ hashMap.put(sysDept.getDeptName(), organs);
|
|
|
}
|
|
|
- hashMap.put(sysDept.getDeptName(), organs);
|
|
|
return AjaxResult.success(hashMap);
|
|
|
}
|
|
|
|