| | |
| | | for(JhyOrderItems jhyOrderItems : jhyOrderItemsList){ |
| | | JhyOrderItemsVo jhyOrderItemsVo = BeanUtil.copyProperties(jhyOrderItems, JhyOrderItemsVo.class); |
| | | BigDecimal multiply = jhyOrderItemsVo.getPrice().multiply(new BigDecimal(40)); |
| | | BigDecimal multiplyScore = jhyOrderItemsVo.getPrice().multiply(jhyOrderItemsVo.getWeight()).multiply(new BigDecimal(40)); |
| | | BigDecimal multiplyScore = jhyOrderItemsVo.getPrice() |
| | | .multiply(jhyOrderItemsVo.getWeight()==null?BigDecimal.ZERO :jhyOrderItemsVo.getWeight()) |
| | | .multiply(new BigDecimal(40)); |
| | | jhyOrderItemsVo.setPrice(multiply); |
| | | jhyOrderItemsVo.setAllPrice(multiplyScore); |
| | | jhyOrderItemsVolist.add(jhyOrderItemsVo); |