| | |
| | | order.setOrderTimeSx(OrderDTO.getOrderTimeSx()); |
| | | this.save(order); |
| | | |
| | | |
| | | |
| | | if (OrderDTO.getOrderFrom().getCode()==4){ |
| | | if (OrderDTO.getAuctionType().getCode()==1){ |
| | | LambdaQueryWrapper<OrderAuctionBond> wrapper= Wrappers.lambdaQuery(); |
| | |
| | | if (OrderDTO.getAuctionType().getCode()==2){ |
| | | LambdaQueryWrapper<OrderAuctionBond> wrapper= Wrappers.lambdaQuery(); |
| | | wrapper.eq(OrderAuctionBond::getMemberId,OrderDTO.getMemberId()); |
| | | wrapper.eq(OrderAuctionBond::getAuctionGoodsId,OrderDTO.getGoodsSkuId()); |
| | | wrapper.eq(OrderAuctionBond::getBoundStatus,2); |
| | | wrapper.eq(OrderAuctionBond::getAuctionSalesroomId,OrderDTO.getAuctionSalesroomId()); |
| | | wrapper.eq(OrderAuctionBond::getBondType,2); |
| | |
| | | orderVO = BeanUtils.copyBean(order, OrderVO.class); |
| | | orderVO.setAuctionType(order.getAuctionOrderType()); |
| | | orderVO.setCouponId(order.getCouponId()); |
| | | orderVO.setBound(order.getBound()); |
| | | orderVO.setIsRequest(order.getIsRequest()); |
| | | if (orderVO.getOrderFrom().getCode()==3){ |
| | | GoodsGroupPurchase data = GoodsSkuClient.getGoodsSeckiGoodsGroupPurchaseOne(order.getGoodsSkuId(), SecurityConstants.INNER).getData(); |
| | | orderVO.setGroupTime(data.getGroupTime()); |
| | |
| | | |
| | | LambdaQueryWrapper<OrderAuctionBond> wrapper3= Wrappers.lambdaQuery(); |
| | | wrapper3.eq(OrderAuctionBond::getOrderId,order.getId()); |
| | | wrapper3.or().eq(OrderAuctionBond::getOrderNo, order.getOrderNo()); |
| | | OrderAuctionBond orderAuctionBond = orderAuctionBondMapper.selectOne(wrapper3); |
| | | if (orderAuctionBond!=null){ |
| | | if (orderAuctionBond.getBoundStatus().getCode()==1||orderAuctionBond.getBoundStatus().getCode()==2){ |
| | |
| | | } |
| | | }else { |
| | | orderVO.setIsAuctionBond(1); |
| | | orderVO.setBound(new BigDecimal(0)); |
| | | } |
| | | |
| | | } catch (Exception e) { |