| | |
| | | returnMap.put("Type",1); |
| | | return R.ok(returnMap); |
| | | } |
| | | |
| | | |
| | | /* if(page1.getOrderNo().contains("SP")){ |
| | | GoodsSku goodsSku =new GoodsSku(); |
| | | goodsSku.setId(page1.getGoodsSkuId()); |
| | | goodsSku.setSoldQuantity(page1.getGoodsQuantity()); |
| | | goodsSkuClient.updGoods(goodsSku, SecurityConstants.INNER); |
| | | } |
| | | |
| | | if(page1.getOrderNo().contains("MS")){ |
| | | GoodsSku goodsSku =new GoodsSku(); |
| | | goodsSku.setId(page1.getGoodsSkuId()); |
| | | goodsSku.setSoldQuantity(page1.getGoodsQuantity()); |
| | | goodsSkuClient.updGoodsSeckill1(goodsSku, SecurityConstants.INNER); |
| | | }*/ |
| | | |
| | | |
| | | if(page1.getOrderNo().contains("TG")){ |
| | | GoodsGroupPurchase goodsSeckiGoodsGroupPurchaseOne = goodsSkuClient.getGoodsSeckiGoodsGroupPurchaseOne(page1.getGoodsSkuId(), SecurityConstants.INNER).getData(); |
| | | GoodsGroupPurchaseInfo goodsSeckiGoodsGroupPurchaseInfo = goodsSkuClient.getGoodsSeckiGoodsGroupPurchaseInfo(page1.getGoodsSkuId(), SecurityConstants.INNER).getData(); |
| | | /* if (goodsSeckiGoodsGroupPurchaseInfo!=null){ |
| | | goodsSkuClient.updgoodsGroupPurchaseInfo(goodsSeckiGoodsGroupPurchaseInfo, SecurityConstants.INNER); |
| | | page1.setGroupNo(goodsSeckiGoodsGroupPurchaseInfo.getMubre()); |
| | | }else{ |
| | | UUID uuid = UUID.randomUUID(); |
| | | GoodsGroupPurchaseInfo goodsGroupPurchaseInfo=new GoodsGroupPurchaseInfo(); |
| | | goodsGroupPurchaseInfo.setGroupSize(goodsSeckiGoodsGroupPurchaseOne.getGroupSize()); |
| | | goodsGroupPurchaseInfo.setCurrentNumber(1); |
| | | goodsGroupPurchaseInfo.setMubre(uuid.toString()); |
| | | goodsGroupPurchaseInfo.setGroupPurchaseId(page1.getGoodsSkuId()); |
| | | goodsGroupPurchaseInfo.setGroupStatus(0); |
| | | goodsSkuClient.updgoodsGroupPurchaseInfo(goodsGroupPurchaseInfo, SecurityConstants.INNER); |
| | | page1.setGroupNo(uuid.toString()); |
| | | }*/ |
| | | } |
| | | OrderMapper.updateById(page1); |
| | | |
| | | if (page1.getPoints()!=0){ |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | /*if (orderNO.contains("BO")) { |
| | | LambdaQueryWrapper<OrderAuctionBond> wrapper1= Wrappers.lambdaQuery(); |
| | | wrapper1.eq(OrderAuctionBond::getOrderNo,orderNO); |
| | | wrapper1.eq(OrderAuctionBond::getDelFlag,0); |
| | | OrderAuctionBond one1 = orderAuctionBondMapper.selectOne(wrapper1); |
| | | if (one1.getBond().compareTo(new BigDecimal(0))==0){ |
| | | one1.setBoundStatus(BondStatusEnum.PAID); |
| | | Map<String, Object> returnMap = new HashMap<>(); |
| | | returnMap.put("Type",1); |
| | | return R.ok(returnMap); |
| | | } |
| | | |
| | | |
| | | }else{ |
| | | LambdaQueryWrapper<Order> wrapper1= Wrappers.lambdaQuery(); |
| | | wrapper1.eq(Order::getOrderNo,orderNO); |
| | | wrapper1.eq(Order::getDelFlag,0); |
| | | Order page1 = OrderMapper.selectOne(wrapper1); |
| | | if (page1.getTotalAmount().compareTo(new BigDecimal(0))==0){ |
| | | page1.setOrderStatus(OrderStatusEnum.TO_BE_SHIPPED); |
| | | page1.setPayTime(LocalDateTime.now()); |
| | | OrderMapper.updateById(page1); |
| | | Map<String, Object> returnMap = new HashMap<>(); |
| | | returnMap.put("Type",1); |
| | | |
| | | |
| | | page1.setOrderStatus(OrderStatusEnum.TO_BE_SHIPPED); |
| | | page1.setPayTime(LocalDateTime.now()); |
| | | OrderMapper.updateById(page1); |
| | | |
| | | if(page1.getOrderNo().contains("SP")){ |
| | | GoodsSku goodsSku =new GoodsSku(); |
| | | goodsSku.setId(page1.getGoodsSkuId()); |
| | | goodsSku.setSoldQuantity(page1.getGoodsQuantity()); |
| | | goodsSkuClient.updGoods(goodsSku, SecurityConstants.INNER); |
| | | } |
| | | |
| | | if(page1.getOrderNo().contains("MS")){ |
| | | GoodsSku goodsSku =new GoodsSku(); |
| | | goodsSku.setId(page1.getGoodsSkuId()); |
| | | goodsSku.setSoldQuantity(page1.getGoodsQuantity()); |
| | | goodsSkuClient.updGoodsSeckill1(goodsSku, SecurityConstants.INNER); |
| | | } |
| | | |
| | | |
| | | MemberPointsDTO memberPointsDTO=new MemberPointsDTO(); |
| | | memberPointsDTO.setMemberId(page1.getMemberId()); |
| | | memberPointsDTO.setPointsType(1); |
| | | memberPointsDTO.setPointsStatus(PointStatusEnum.INCREASE); |
| | | memberPointsDTO.setPoints(page1.getPoints()); |
| | | memberClient.addMemberPoints(memberPointsDTO); |
| | | |
| | | updMembeOneDTO MembeOneDTO=new updMembeOneDTO(); |
| | | MembeOneDTO.setType(1); |
| | | MembeOneDTO.setMemberId(page1.getMemberId()); |
| | | MembeOneDTO.setMoney(page1.getTotalAmount()); |
| | | MembeOneDTO.setTotalPoints(page1.getPoints()); |
| | | memberClient.updMembeOne(MembeOneDTO, SecurityConstants.INNER); |
| | | |
| | | |
| | | return R.ok(returnMap); |
| | | } |
| | | |
| | | |
| | | |
| | | }*/ |
| | | |
| | | if (orderNO.contains("BO")) { |
| | | LambdaQueryWrapper<OrderAuctionBond> wrapper1= Wrappers.lambdaQuery(); |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | // ——请根据您的业务逻辑来编写程序(以上代码仅作参考)—— |
| | | log.debug("AlipayController.notifyUrl__回调处理:success"); |