| | |
| | | } |
| | | |
| | | Shop shop = shopMapper.selectById(appUser.getShopId()); |
| | | if(null != shop){ |
| | | if(null != shop && shop.getDelFlag() == 0 && shop.getStatus() == 1){ |
| | | NearbyShopVO vo = new NearbyShopVO(); |
| | | vo.setId(appUser.getShopId().longValue()); |
| | | vo.setName(shop.getName()); |
| | |
| | | if (shopDetailVO == null) { |
| | | throw new ServiceException("查询店铺不存在"); |
| | | } |
| | | if (shopDetailVO.getStatus().equals(2)){ |
| | | throw new ServiceException("店铺已冻结"); |
| | | } |
| | | ShopScore one = shopScoreService.getOne(new LambdaQueryWrapper<ShopScore>().eq(ShopScore::getAppUserId, userid).eq(ShopScore::getShopId, shopId).last(" order by create_time desc limit 0, 1")); |
| | | shopDetailVO.setMyScore(null == one ? BigDecimal.ZERO : one.getScore()); |
| | | // 计算距离 |