| | |
| | | public boolean phoneIsUsed(String phone) { |
| | | Map<String, Object> selectMap = new HashMap<>(); |
| | | selectMap.put("mobile", phone); |
| | | selectMap.put("is_del", 0); |
| | | List<SysUser> sysUsers = baseMapper.selectByMap(selectMap); |
| | | return (sysUsers.size() > 0); |
| | | } |
| | |
| | | * @param depatmentId |
| | | * @return |
| | | */ |
| | | private Integer departmetAccountsCount(Long depatmentId) { |
| | | public Integer departmetAccountsCount(Long depatmentId) { |
| | | SysDepartment sysDepartment = departmentService.getById(depatmentId); |
| | | if (sysDepartment == null) { |
| | | return 0; |