| | |
| | | import java.util.stream.Collectors; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.validation.constraints.NotBlank; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.panzhihua.common.model.dtos.community.microCommercialStreet.BindUserPhoneDTO; |
| | | import com.panzhihua.common.model.vos.community.ComAreaTownCommunityVO; |
| | | import com.panzhihua.common.model.vos.community.acid.ComActAcidMemberVO; |
| | | import com.panzhihua.common.model.vos.community.microCommercialStreet.McsLoginUserInfoVO; |
| | | import com.panzhihua.service_user.dao.*; |
| | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public R addUserBackstage(AdministratorsUserVO administratorsUserVO) { |
| | | ComActVO comActVO = userDao.selectCommunity(administratorsUserVO.getCommunityId()); |
| | | if (nonNull(comActVO)) { |
| | | List<ComAreaTownCommunityVO> areaTownList = userDao.selectAreaTownCommunity(comActVO.getName()); |
| | | if (!areaTownList.isEmpty()) { |
| | | administratorsUserVO.setRelationName(comActVO.getName()); |
| | | String address = comActVO.getAddress(); |
| | | if (areaTownList.size() > 1 && isNotBlank(address)) { |
| | | ComAreaTownCommunityVO townCommunityVO = areaTownList.stream() |
| | | .filter(e -> address.contains(e.getArea()) && address.contains(e.getTown())).findFirst().orElse(null); |
| | | if (nonNull(townCommunityVO)) { |
| | | administratorsUserVO.setRelationName(String.join(",", townCommunityVO.getArea(), townCommunityVO.getTown(), townCommunityVO.getCommunity())); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | SysUserDO sysUserDO = new SysUserDO(); |
| | | Long roleId = administratorsUserVO.getRoleId(); |
| | | if (roleId.intValue() == 999999999 || roleId.intValue() == 888888888) { |
| | |
| | | @Override |
| | | public R dataKanban(String areaCode) { |
| | | IndexDataKanbanVO indexDataKanbanVO = userDao.selectIndexDataKanban(areaCode); |
| | | List<DataKanbanDTO> dataKanbanDTOS = userDao.selectCommunityUserOrder(areaCode); |
| | | List<DataKanbanDTO> dataKanbanDTOS = userDao.selectCommunityUserOrder(new Page(1L, 9999L), areaCode).getRecords(); |
| | | |
| | | List<String> communityUserX = new ArrayList<>(); |
| | | List<Integer> communityUserY = new ArrayList<>(); |
| | |
| | | List<Integer> communityActiveUserZ = new ArrayList<>(); |
| | | |
| | | List<DataKanbanDTO> dataKanbanDTOS = null; |
| | | Page page = new Page<>(); |
| | | if (nonNull(dataKanBansDto.getPageNum()) && nonNull(dataKanBansDto.getPageSize())) { |
| | | page.setCurrent(dataKanBansDto.getPageNum()); |
| | | page.setSize(dataKanBansDto.getPageSize()); |
| | | } else { |
| | | page.setCurrent(1L); |
| | | page.setSize(20L); |
| | | } |
| | | if(dataKanBansDto.getType() != null && dataKanBansDto.getType().equals(DataKanBansDto.type.by)){ |
| | | dataKanbanDTOS = userDao.selectCommunityUserOrderMonth(dataKanBansDto.getAreaCode()); |
| | | dataKanbanDTOS = userDao.selectCommunityUserOrderMonth(page, dataKanBansDto.getAreaCode()).getRecords(); |
| | | }else{ |
| | | dataKanbanDTOS = userDao.selectCommunityUserOrder(dataKanBansDto.getAreaCode()); |
| | | dataKanbanDTOS = userDao.selectCommunityUserOrder(page, dataKanBansDto.getAreaCode()).getRecords(); |
| | | } |
| | | if (!ObjectUtils.isEmpty(dataKanbanDTOS)) { |
| | | dataKanbanDTOS.forEach(dataKanbanDTO -> { |