| | |
| | | public class AuctionGoodsServiceImpl extends ServiceImpl<AuctionGoodsMapper, AuctionGoods> implements IAuctionGoodsService { |
| | | |
| | | private final GoodsSkuClient goodsSkuClient; |
| | | private final IAuctionBidRecordService auctionBidRecordService; |
| | | private final MemberClient memberClient; |
| | | private final OrderClient orderClient; |
| | | private final IAuctionBidRecordService auctionBidRecordService; |
| | | /** |
| | | * 获取拍卖商品列表的分页数据 |
| | | * |
| | |
| | | orderDTO.setReceiverphone(data.getRecipientPhone()); |
| | | } |
| | | orderClient.saveOrderOne(orderDTO, SecurityConstants.INNER); |
| | | } else { |
| | | // 没有人出价,退回拍卖商品库存 |
| | | goodsSkuClient.returningStock(auctionGoods.getGoodsSkuId(), |
| | | auctionGoods.getAuctionStock(), SecurityConstants.INNER); |
| | | } |
| | | // 结束拍卖 |
| | | this.lambdaUpdate().set(AuctionGoods::getStartStatus, AuctionStartStatusEnum.ENDED) |
| | | .eq(AuctionGoods::getId, id).update(); |
| | | // 查询已支付保证基记录 |
| | | // TODO 退还保证金 |
| | | |
| | | } |
| | | } |
| | | } |