|
|
|
@ -228,19 +228,16 @@ public class HighOrderController { |
|
|
|
|
childOrder.setGoodsImg(store.getStoreLogo()); |
|
|
|
|
|
|
|
|
|
// 平台的价格
|
|
|
|
|
// childOrder.setGasPriceGun(priceDetail.getBigDecimal("priceGun"));
|
|
|
|
|
// childOrder.setGasPriceVip(priceDetail.getBigDecimal("priceVip"));
|
|
|
|
|
childOrder.setExt1(childOrder.getGasPriceVip().toString()); |
|
|
|
|
childOrder.setGoodsActualPrice(new BigDecimal(childOrder.getGoodsPrice().toString()).divide(childOrder.getGasPriceGun(),10,BigDecimal.ROUND_DOWN).multiply(childOrder.getGasPriceVip()).setScale(2,BigDecimal.ROUND_HALF_UP)); |
|
|
|
|
|
|
|
|
|
// 团油的价格
|
|
|
|
|
// childOrder.setGasPriceGun(priceDetail.getBigDecimal("priceGun"));
|
|
|
|
|
// childOrder.setGasPriceVip(priceDetail.getBigDecimal("priceVip"));
|
|
|
|
|
// childOrder.setGoodsPrice(new BigDecimal(childOrder.getGoodsPrice().toString()).divide(childOrder.getGasPriceGun(),10,BigDecimal.ROUND_DOWN).multiply(childOrder.getGasPriceVip()).setScale(2,BigDecimal.ROUND_HALF_UP));
|
|
|
|
|
childOrder.setGasPriceGun(priceDetail.getBigDecimal("priceGun")); |
|
|
|
|
childOrder.setGasPriceVip(priceDetail.getBigDecimal("priceVip")); |
|
|
|
|
childOrder.setGoodsPrice(new BigDecimal(childOrder.getGoodsPrice().toString()).divide(childOrder.getGasPriceGun(),10,BigDecimal.ROUND_DOWN).multiply(childOrder.getGasPriceVip()).setScale(2,BigDecimal.ROUND_HALF_UP)); |
|
|
|
|
|
|
|
|
|
childOrder.setGoodsSpecName("默认"); |
|
|
|
|
// childOrder.setTotalPrice(childOrder.getGoodsPrice().multiply(new BigDecimal(childOrder.getSaleCount().toString())));
|
|
|
|
|
childOrder.setTotalPrice(childOrder.getGoodsPrice()); |
|
|
|
|
childOrder.setTotalPrice(childOrder.getGoodsPrice().multiply(new BigDecimal(childOrder.getSaleCount().toString()))); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (childOrder.getGoodsType() == 7) { |
|
|
|
@ -272,6 +269,7 @@ public class HighOrderController { |
|
|
|
|
childOrder.setGoodsActualPrice(discountPackage.getPrice()); |
|
|
|
|
childOrder.setGoodsSpecName("默认"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 汇联通充值
|
|
|
|
|
if (childOrder.getGoodsType() == 8) { |
|
|
|
|
if (childOrder.getGoodsPrice() == null) { |
|
|
|
|