Merge branch 'score-shop' of http://120.27.238.55:7000/r/xzx into score-shop
| | |
| | | for(JhyOrderItems jhyOrderItems : jhyOrderItemsList){ |
| | | JhyOrderItemsVo jhyOrderItemsVo = BeanUtil.copyProperties(jhyOrderItems, JhyOrderItemsVo.class); |
| | | BigDecimal multiply = jhyOrderItemsVo.getPrice().multiply(new BigDecimal(40)); |
| | | jhyOrderItemsVo.setAllPrice(multiply); |
| | | 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); |
| | | } |
| | | } |
| | |
| | | @ApiModelProperty(value="标题") |
| | | private String title; |
| | | |
| | | @ApiModelProperty(value="价格") |
| | | @ApiModelProperty(value="单价(积分)= 价格*40") |
| | | private BigDecimal price; |
| | | |
| | | @ApiModelProperty(value="总计") |
| | | @ApiModelProperty(value="总积分= 价格*重量*40") |
| | | private BigDecimal allPrice; |
| | | |
| | | @ApiModelProperty(value="图片") |
| | |
| | | a.remark remark, |
| | | b.nick_name name, |
| | | b.mobile_phone mobilePhone, |
| | | (select ifnull(sum(price)*40,0) from xzx_jhy_order_items where order_id = a.id) totalPrice, |
| | | (select ifnull(sum(price*weight*40),0) from xzx_jhy_order_items where order_id = a.id) totalPrice, |
| | | d.username username |
| | | FROM |
| | | xzx_jhy_order a |