| | |
| | | order.setTotalAmount(OrderDTO.getTotalAmount()); |
| | | order.setOrderStatus(OrderStatusEnum.TO_PLAY); |
| | | order.setPoints(OrderDTO.getPoints()); |
| | | order.setGoodsQuantity(OrderDTO.getGoodsQuantity()); |
| | | order.setGoodsQuantity(1); |
| | | order.setReceiverName(OrderDTO.getReceiverName()); |
| | | order.setReceiverPhone(OrderDTO.getReceiverphone()); |
| | | order.setReceiverCity(OrderDTO.getReceiverCity()); |
| | |
| | | wrapper.eq(OrderAuctionBond::getAuctionSalesroomId,OrderDTO.getAuctionSalesroomId()); |
| | | wrapper.eq(OrderAuctionBond::getBondType,2); |
| | | OrderAuctionBond orderAuctionBond = orderAuctionBondMapper.selectOne(wrapper); |
| | | orderAuctionBond.setOrderId(order.getId()); |
| | | orderAuctionBondMapper.updateById(orderAuctionBond); |
| | | if (orderAuctionBond!=null){ |
| | | orderAuctionBond.setOrderId(order.getId()); |
| | | orderAuctionBondMapper.updateById(orderAuctionBond); |
| | | } |
| | | |
| | | } |
| | | |
| | | } |
| | |
| | | memberOrderDTO1.setMemberId(order.getMemberId()); |
| | | memberOrderDTO1.setGoodsSkuId(order.getGoodsSkuId()); |
| | | Integer num=baseMapper.getSeckillMembers1(memberOrderDTO1); |
| | | Integer num1=num+order.getGoodsQuantity(); |
| | | Integer num1=0; |
| | | if (num!=null){ |
| | | num1 =num+order.getGoodsQuantity(); |
| | | }else{ |
| | | num1=order.getGoodsQuantity(); |
| | | } |
| | | |
| | | GoodsSeckill data = goodsSkuClient.getGoodsSeckillOne(order.getGoodsSkuId(), SecurityConstants.INNER).getData(); |
| | | GoodsSku goodsSku = goodsSkuClient.getGoodsSkuOne(data.getGoodsSkuId(), SecurityConstants.INNER).getData(); |
| | | if (data.getLimitNumber()<=num1){ |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 查询统计订单列表 |
| | | * |
| | | * @param startTime 开始时间 |
| | | * @param endTime 结束时间 |
| | | * @return List<Order> |
| | | */ |
| | | @Override |
| | | public List<Order> getStaticsOrderList(LocalDateTime startTime, LocalDateTime endTime) { |
| | | return baseMapper.getStaticsOrderList(startTime, endTime); |
| | | } |
| | | } |