| | |
| | | //父类的应付总积分 |
| | | BigDecimal integralTotal = vo.getShouldTotalPoints(); |
| | | //父类的应付总金额 |
| | | BigDecimal infoTotal = vo.getActualTotal(); |
| | | BigDecimal infoTotal = vo.getTotal(); |
| | | //父类的总金额 |
| | | BigDecimal parentTotal = vo.getProPrice().multiply(new BigDecimal(vo.getBuyNum())).setScale(2,RoundingMode.HALF_UP); |
| | | |
| | |
| | | proportion = BigDecimal.ZERO; |
| | | } |
| | | //根据比例算出积分 |
| | | orderItemSon.setTotal(vo.getActualTotal().multiply(proportion).setScale(2,RoundingMode.HALF_UP)); |
| | | orderItemSon.setTotal(vo.getTotal().multiply(proportion).setScale(2,RoundingMode.HALF_UP)); |
| | | if(orderItemSon.getTotal().compareTo(infoTotal) > 0){ |
| | | orderItemSon.setTotal(infoTotal); |
| | | } |