| | |
| | | return R.fail("社区已经存在"); |
| | | } |
| | | BeanUtils.copyProperties(comActVO, comActDO); |
| | | comActDO.setPlaintextPassword(password); |
| | | int insert = comActDAO.insert(comActDO); |
| | | if (insert > 0) { |
| | | ComActDO comActDO1 = |
| | |
| | | if (!ObjectUtils.isEmpty(password)) { |
| | | String encode = new BCryptPasswordEncoder().encode(password); |
| | | comActVO.setPassword(encode); |
| | | comActDO.setPlaintextPassword(password); |
| | | a = 1; |
| | | } |
| | | ComStreetDO comStreetDO = comStreetDAO.selectById(comActVO.getStreetId()); |
| | |
| | | // a=1; |
| | | // } |
| | | BeanUtils.copyProperties(comActVO, comActDO); |
| | | |
| | | // ComActDO selectOne = comActDAO.selectOne(new QueryWrapper<ComActDO>().lambda().eq(ComActDO::getAccount, account)); |
| | | // if (null != selectOne && selectOne.getAccount().equals(comActVO.getAccount())) { |
| | | // return R.fail("该登录账号重复,请重新修改"); |
| | |
| | | return R.ok(this.comActDAO.getCommunityListByNearby(communityDTO)); |
| | | } |
| | | |
| | | @Override |
| | | public R getCommunityPassword(Long communityId){ |
| | | return R.ok(comActDAO.getCommunityPassword(communityId)); |
| | | } |
| | | |
| | | } |