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