简化返回值逻辑判断
parent
1ec806ae80
commit
9da3b34b9c
|
@ -152,7 +152,7 @@ public class SysDeptServiceImpl implements ISysDeptService
|
||||||
public boolean checkDeptExistUser(Long deptId)
|
public boolean checkDeptExistUser(Long deptId)
|
||||||
{
|
{
|
||||||
int result = deptMapper.checkDeptExistUser(deptId);
|
int result = deptMapper.checkDeptExistUser(deptId);
|
||||||
return result > 0 ? true : false;
|
return result > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue