!199 简化逻辑判断
Merge pull request !199 from 光速蜗牛/master
| | |
| | | public boolean hasChildByDeptId(Long deptId)
|
| | | {
|
| | | int result = deptMapper.hasChildByDeptId(deptId);
|
| | | return result > 0 ? true : false;
|
| | | return result > 0;
|
| | | }
|
| | |
|
| | | /**
|
| | |
| | | public boolean hasChildByMenuId(Long menuId)
|
| | | {
|
| | | int result = menuMapper.hasChildByMenuId(menuId);
|
| | | return result > 0 ? true : false;
|
| | | return result > 0;
|
| | | }
|
| | |
|
| | | /**
|
| | |
| | | public boolean checkMenuExistRole(Long menuId)
|
| | | {
|
| | | int result = roleMenuMapper.checkMenuExistRole(menuId);
|
| | | return result > 0 ? true : false;
|
| | | return result > 0;
|
| | | }
|
| | |
|
| | | /**
|