| | |
| | | if (StringUtils.isNull(auctionGoods)) { |
| | | throw new ServiceException("拍卖商品不存在"); |
| | | } |
| | | // 远程调用商品服务,获取商品信息 |
| | | GoodsSku goodsSku = goodsSkuClient.getGoodsSkuOne(auctionGoods.getGoodsSkuId(), |
| | | SecurityConstants.INNER) |
| | | .getData(); |
| | | if (auctionGoods.getStartStatus().equals(AuctionStartStatusEnum.IN_AUCTION)) { |
| | | // 查询出价记录 |
| | | List<AuctionBidRecord> auctionBidRecords = auctionBidRecordService.getBidRecordByGoodsId( |
| | |
| | | orderDTO.setReceiverDetailAddress(data.getDetailedAddress()); |
| | | orderDTO.setReceiverphone(data.getRecipientPhone()); |
| | | } |
| | | if (StringUtils.isNotNull(goodsSku)) { |
| | | orderDTO.setCoverPic(goodsSku.getCoverPic()); |
| | | orderDTO.setPrice(goodsSku.getPrice()); |
| | | orderDTO.setSkuName(goodsSku.getSkuName()); |
| | | } |
| | | orderClient.saveOrderOne(orderDTO, SecurityConstants.INNER); |
| | | } else { |
| | | // 没有人出价,退回拍卖商品库存 |