| | |
| | | List<Shop> shopList = shopClient.getShopByUserId(userId).getData(); |
| | | user.setShopStatus(0);//未拥有门店 |
| | | if (shopList != null && !shopList.isEmpty()) { |
| | | user.setShopStatus(2);//门店都被冻结 |
| | | for (Shop shop : shopList) { |
| | | if (shop.getStatus()==1) { |
| | | user.setShopStatus(1);//门店状态 |
| | | } |
| | | if(null==user.getShopIds()){ |
| | | Set<Integer> integers = new HashSet<>(); |
| | | user.setShopIds(integers); |
| | | } |
| | | user.getShopIds().add(shop.getId()); |
| | | user.setShopIds(user.getShopIds()); |
| | |
| | | } |
| | | return user; |
| | | } |
| | | |
| | | @Override |
| | | public PageInfo<UserPointStatisticsVO> getUserPointPageList(String name, Integer pageCurr, Integer pageSize) { |
| | | PageInfo<UserPointStatisticsVO> pageInfo=new PageInfo<>(pageCurr,pageSize); |
| | | List<UserPointStatisticsVO> list=baseMapper.getUserPointPageList(pageInfo, name); |
| | | pageInfo.setRecords(list); |
| | | return pageInfo; |
| | | } |
| | | } |