| | |
| | | Long communityId = systemmanagementConfigVO.getCommunityId(); |
| | | List<ComMngUserTagVO> comMngUserTagVOList = systemmanagementConfigVO.getComMngUserTagVOList(); |
| | | if (!ObjectUtils.isEmpty(comMngUserTagVOList)) { |
| | | comMngUserTagDAO.delete(null); |
| | | comMngUserTagDAO.delete(new QueryWrapper<ComMngUserTagDO>().lambda().eq(ComMngUserTagDO::getCommunityId,communityId)); |
| | | comMngUserTagVOList.forEach(comMngUserTagVO -> { |
| | | ComMngUserTagDO comMngUserTagDO = new ComMngUserTagDO(); |
| | | comMngUserTagDO.setCommunityId(communityId); |
| | |
| | | public R getUserListByCommunityId(Long communityId) { |
| | | return R.ok(this.userDao.getUserListByCommunityId(communityId)); |
| | | } |
| | | |
| | | /** |
| | | * 检查当前用户是否是社区工作人员 |
| | | * @param phone |
| | | * @param communityId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public R checkCurrentUserIsTeam(String phone, Long communityId) { |
| | | int result = this.userDao.selectCountTeam(phone, communityId); |
| | | if (result > 0) { |
| | | return R.ok(true); |
| | | } |
| | | return R.ok(false); |
| | | } |
| | | } |