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