|
@@ -215,12 +215,12 @@ public class TourProjectGroupPurchaseServiceImpl extends BaseService<TourProject
|
|
|
tourOrder.setType(1);
|
|
|
// 计算订单价格
|
|
|
BigDecimal adultTotalPrice = groupPurchase.getNowPrice().multiply(BigDecimal.valueOf(tourOrder.getAdultNumber() == null? 0 : tourOrder.getAdultNumber()));
|
|
|
- BigDecimal childTotalPrice = groupPurchase.getChildrenPrice().multiply(BigDecimal.valueOf(tourOrder.getChildrenNumber() == null ? 0 : tourOrder.getChildrenNumber()));
|
|
|
+ BigDecimal childTotalPrice = groupPurchase.getNowChildPrice().multiply(BigDecimal.valueOf(tourOrder.getChildrenNumber() == null ? 0 : tourOrder.getChildrenNumber()));
|
|
|
|
|
|
tourOrder.setTotalAmount(adultTotalPrice.add(childTotalPrice));
|
|
|
tourOrder.setCurrency(groupPurchase.getPriceUnit());
|
|
|
tourOrder.setAdultPrice(groupPurchase.getNowPrice());
|
|
|
- tourOrder.setChildrenPrice(groupPurchase.getChildrenPrice());
|
|
|
+ tourOrder.setChildrenPrice(groupPurchase.getNowChildPrice());
|
|
|
tourOrder.setGroupPurchaseProgressId(groupPurchase.getId());
|
|
|
return groupPurchase;
|
|
|
}
|