|
@@ -168,7 +168,7 @@ public class TourismOrderController {
|
|
|
List<TourismDatePrice> tourismDatePriceList = tourismDatePriceService.getTourismDatePriceList(tourismDatePrice, "");
|
|
|
if (CollectionUtils.isNotEmpty(tourismDatePriceList)) {
|
|
|
totalPrice = tourismDatePriceList.get(0).getAdultPrice().multiply(BigDecimal.valueOf(tourOrderDto.getAdultNumber() == null?0:tourOrderDto.getAdultNumber())).
|
|
|
- add(tourismDatePriceList.get(0).getChildrenPrice().multiply(BigDecimal.valueOf(tourOrderDto.getAdultNumber() == null?0:tourOrderDto.getAdultNumber())));
|
|
|
+ add(tourismDatePriceList.get(0).getChildrenPrice().multiply(BigDecimal.valueOf(tourOrderDto.getChildrenNumber() == null?0:tourOrderDto.getChildrenNumber())));
|
|
|
// tourOrderDto.setEndDate(DateUtils.addDays(tourismDatePrice.getOrderDate(),Integer.parseInt(tourismProject.getCountTimes())));
|
|
|
tourOrderDto.setTotalAmount(totalPrice);
|
|
|
tourOrderDto.setCurrency(tourismProject.getPriceUnit());
|