|
|
|
@ -76,7 +76,7 @@ public class OrderPaySuccessService { |
|
|
|
|
} else if (childOrder.getProductType().equals(OrderChildProductTypeEnum.type3.getCode())) { |
|
|
|
|
cinema(order, childOrder); |
|
|
|
|
} else if (childOrder.getProductType().equals(OrderChildProductTypeEnum.type4.getCode())) { |
|
|
|
|
starbucks(childOrder); |
|
|
|
|
starbucks(order , childOrder); |
|
|
|
|
} |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
|
@ -288,12 +288,21 @@ public class OrderPaySuccessService { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void starbucks(BsOrderChild childOrder) throws Exception { |
|
|
|
|
public void starbucks(OrderModel order,BsOrderChild childOrder) { |
|
|
|
|
// 推送订单
|
|
|
|
|
// 查询星巴克订单
|
|
|
|
|
Map<String , Object> map = new HashMap<>(); |
|
|
|
|
map.put("orderNo", childOrder.getChannelOrderNo()); |
|
|
|
|
StarbucksService.starbucksOrdersPay(map); |
|
|
|
|
|
|
|
|
|
Map<String, Object> params = new HashMap<>(); |
|
|
|
|
params.put("orderNo", childOrder.getOrderNo()); |
|
|
|
|
List<BsOrderStarbucks> orderStarbucks = bsOrderStarbucksService.getList(params); |
|
|
|
|
|
|
|
|
|
for (BsOrderStarbucks bsOrderStarbucks : orderStarbucks) { |
|
|
|
|
bsOrderStarbucks.setPayType(order.getPayType()); |
|
|
|
|
bsOrderStarbucksService.update(bsOrderStarbucks); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|