Commit 3f5111c7 authored by hezhen's avatar hezhen

修改价格计算

parent 3b96a003
...@@ -69,7 +69,7 @@ public class TourGoodSpeBiz extends BaseBiz<TourGoodSpePriceMapper, TourGoodSpeP ...@@ -69,7 +69,7 @@ public class TourGoodSpeBiz extends BaseBiz<TourGoodSpePriceMapper, TourGoodSpeP
} }
} }
totalPrice = price.multiply(new BigDecimal(number)).setScale(2, RoundingMode.HALF_UP); totalPrice = price.multiply(new BigDecimal(number)).setScale(2, RoundingMode.HALF_UP);
totalChildPrice = childNumber > 0 ? price.multiply(new BigDecimal(childNumber)).setScale(2, RoundingMode.HALF_UP): new BigDecimal("0.00"); totalChildPrice = childNumber > 0 ? childPrice.multiply(new BigDecimal(childNumber)).setScale(2, RoundingMode.HALF_UP): new BigDecimal("0.00");
priceVo.setPrice(price); priceVo.setPrice(price);
priceVo.setChildPrice(childPrice); priceVo.setChildPrice(childPrice);
priceVo.setRealPrice(totalPrice); priceVo.setRealPrice(totalPrice);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment