| | |
| | | List<EexcelUserDTO> eexcelUserDTOS=userDao.selectExport(exportUserDTO); |
| | | return R.ok(eexcelUserDTOS); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public R getSysUserVOByPhone(String phone) { |
| | | SysUserDO sysUserDO = userDao.selectOne(new QueryWrapper<SysUserDO>().lambda().eq(SysUserDO::getPhone,phone)); |
| | | if (ObjectUtils.isEmpty(sysUserDO)) { |
| | | return R.fail("用户不存在"); |
| | | } |
| | | SysUserVO sysUserVO = new SysUserVO(); |
| | | BeanUtils.copyProperties(sysUserDO,sysUserVO); |
| | | return R.ok(sysUserVO); |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | // String encode = new BCryptPasswordEncoder().encode("lbsq123456"); |
| | | // System.out.println(encode); |
| | |
| | | // boolean matches = encoder.matches("admin1234567", encode); |
| | | // System.out.println(matches); |
| | | } |
| | | |
| | | /** |
| | | * 查询当前社区所有标签以及预设标签 |
| | | * |
| | | * @return 标签集合 |
| | | */ |
| | | @Override |
| | | public R listTags(Long communityId) { |
| | | List<String> list=new ArrayList<>(); |
| | | List<ComMngUserTagDO> comMngUserTagDOS = comMngUserTagDAO.selectList(new QueryWrapper<ComMngUserTagDO>().eq("sysFlag",1).or().eq("communityId",communityId)); |
| | | if (!ObjectUtils.isEmpty(comMngUserTagDOS)) { |
| | | list=comMngUserTagDOS.stream().map(comMngUserTagDO -> comMngUserTagDO.getTagName()).collect(Collectors.toList()); |
| | | } |
| | | return R.ok(list); |
| | | } |
| | | } |