简化返回值逻辑判断

pull/182/head
shawn 3 years ago
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…
Cancel
Save