mitao
2025-03-06 01d6fa48a0de7a21988e89f71721b6b85e53b517
ruoyi-modules/ruoyi-auction/src/main/java/com/ruoyi/auction/service/impl/AuctionSalesroomServiceImpl.java
@@ -988,6 +988,9 @@
                if (StringUtils.isNull(data.getListingDuration())) {
                    throw new ServiceException("拍卖商品拍卖时间不能为空");
                }
                if (StringUtils.isBlank(data.getDescription())) {
                    throw new ServiceException("拍卖商品介绍不能为空");
                }
            }
        });
        List<AuctionSalesroomGoods> auctionSalesroomGoods = BeanUtils.copyList(
@@ -1592,6 +1595,7 @@
        order.setSkuName(goodsSku.getSkuName());
        order.setCoverPic(goodsSku.getCoverPic());
        order.setPrice(lastBidAmount);
        order.setGoodsId(auctionSalesroomGoods.getGoodsSkuId());
        orderClient.saveOrderOne(order, SecurityConstants.INNER);
    }
    /**
@@ -1798,4 +1802,15 @@
                        .eq(AuctionBondJl::getBondType, bondType)
                        .last("limit 1"));
    }
    @Override
    public List<GoodsSku> getGoodsSkuByAuctionSalesroomGoodsSet(
            Set<Long> auctionSalesroomGoodsSet) {
        List<AuctionSalesroomGoods> auctionSalesroomGoodsList = auctionSalesroomGoodsMapper.selectBatchIds(
                auctionSalesroomGoodsSet);
        Set<Long> goodsSkuIdSet = auctionSalesroomGoodsList.stream()
                .map(AuctionSalesroomGoods::getGoodsSkuId).collect(
                        Collectors.toSet());
        return goodsSkuClient.getGoodsListByIds(goodsSkuIdSet, SecurityConstants.INNER).getData();
    }
}