...
|
...
|
@@ -125,10 +125,14 @@ public class UserOrdersServiceImpl implements IUserOrdersService,IBusinessExport |
|
|
//订单金额
|
|
|
orderRspBO.setOrderAmount(orders.getOrderAmount());
|
|
|
orderRspBO.setYohoCoinNum(orders.getYohoCoinNum());
|
|
|
int yohoCoin = 0;
|
|
|
if(orders.getYohoCoinNum()>0){
|
|
|
yohoCoin = orders.getYohoCoinNum()/100;
|
|
|
}
|
|
|
//运费
|
|
|
orderRspBO.setShipmentAmount(orders.getShippingCost());
|
|
|
//实际支付金额
|
|
|
orderRspBO.setRealPayAmount(orders.getLastOrderAmount().subtract(orders.getShippingCost()));
|
|
|
orderRspBO.setRealPayAmount(orders.getOrderAmount().subtract(orderRspBO.getCouponAmount()).subtract(new BigDecimal(yohoCoin)));
|
|
|
//订单状态
|
|
|
orderRspBO.setOrderStatus(OrderStatusEnum.getNameByCode(String.valueOf(orders.getOrderStatus())));
|
|
|
//附加信息
|
...
|
...
|
|