| | |
| | | private final DappAccountMoneyChangeDao dappAccountMoneyChangeDao; |
| | | private final MallAddressInfoMapper mallAddressInfoMapper; |
| | | private final MallGoodsCategoryMapper mallGoodsCategoryMapper; |
| | | private final PlatformBannerMapper platformBannerMapper; |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | |
| | | return dappMemberDao.selectShopAddressListInPage(queryDto, page); |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse findAllBanner() { |
| | | QueryWrapper<PlatformBanner> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.orderByAsc("is_top"); |
| | | List<PlatformBanner> paymentMethodList = platformBannerMapper.selectList(queryWrapper); |
| | | return new FebsResponse().success().data(paymentMethodList); |
| | | } |
| | | |
| | | @Override |
| | | public void setDefaultAddress(Long id) { |
| | | Long memberId = LoginUserUtil.getAppUser().getId(); |
| | | MallAddressInfo addressInfo = mallAddressInfoMapper.selectById(id); |
| | | if (addressInfo == null) { |
| | | throw new FebsException("地址不存在"); |
| | | } |
| | | this.baseMapper.updateIsDefault(MallAddressInfo.IS_YOUR_N, memberId, null); |
| | | |
| | | this.baseMapper.updateIsDefault(MallAddressInfo.IS_YOUR_Y, memberId, id); |
| | | } |
| | | |
| | | public static List<List<String>> partitionList(List<String> originalList, int partitionSize) { |
| | | List<List<String>> partitionedList = new ArrayList<>(); |
| | | int size = originalList.size(); |