Эх сурвалжийг харах

[fix]
1.处理价格计算问题

limeng 2 сар өмнө
parent
commit
4269131dff

+ 1 - 1
application-webadmin/src/main/java/com/tourism/webadmin/back/service/impl/TourProjectGroupPurchaseDetailServiceImpl.java

@@ -158,7 +158,7 @@ public class TourProjectGroupPurchaseDetailServiceImpl extends BaseService<TourP
             // 如果有符合当前人数的阶梯价格,则找下一条数据赋值到下阶段价格和人数字段
             if (groupPurchase.getNowCount() >= detail.getMinCount() && groupPurchase.getNowCount() <= detail.getMaxCount()) {
                 groupPurchase.setNowPrice(detail.getAdultPrice());
-                groupPurchase.setChildrenPrice(detail.getChildrenPrice());
+                groupPurchase.setNowChildPrice(detail.getChildrenPrice());
                 if (i + 1 < ladderPriceList.size()) {
                     // 如果有下个阶段的价格,则赋值
                     TourProjectGroupPurchaseDetail nextDetail = ladderPriceList.get(i + 1);