| | |
| | | * @return 结果
|
| | | */
|
| | | @Override
|
| | | public String checkDeptNameUnique(SysDept dept)
|
| | | public boolean checkDeptNameUnique(SysDept dept)
|
| | | {
|
| | | Long deptId = StringUtils.isNull(dept.getDeptId()) ? -1L : dept.getDeptId();
|
| | | SysDept info = deptMapper.checkDeptNameUnique(dept.getDeptName(), dept.getParentId());
|
| | |
| | | @Override
|
| | | public void checkDeptDataScope(Long deptId)
|
| | | {
|
| | | if (!SysUser.isAdmin(SecurityUtils.getUserId()))
|
| | | if (!SysUser.isAdmin(SecurityUtils.getUserId()) && StringUtils.isNotNull(deptId))
|
| | | {
|
| | | SysDept dept = new SysDept();
|
| | | dept.setDeptId(deptId);
|