peng
2025-06-13 355c1a7e343e0d3f75befac1cf49be07ec11b4e7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package cn.lili.modules.order.cart.entity.vo;
 
import cn.lili.modules.order.order.entity.dto.PriceDetailDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
 
import java.io.Serializable;
 
/**
 * 订单价格详情
 *
 * @author Chopper
 * @since 2020-04-01 10:42 上午
 */
@Data
public class PriceDetailVO implements Serializable {
 
    private static final long serialVersionUID = -960537582096338500L;
 
    @ApiModelProperty(value = "商品原价")
    private Double originalPrice;
 
    @ApiModelProperty(value = "配送费")
    private Double freight;
 
    @ApiModelProperty(value = "优惠金额")
    private Double discountPrice;
 
    @ApiModelProperty(value = "支付积分")
    private Long payPoint;
 
    @ApiModelProperty(value = "最终成交金额")
    private Double finalePrice;
 
 
    /**
     * 构造器,初始化默认值
     */
    public PriceDetailVO(PriceDetailDTO dto) {
        this.freight = dto.getFreightPrice();
        this.finalePrice = dto.getFlowPrice();
        this.discountPrice = dto.getDiscountPrice();
        this.payPoint = dto.getPayPoint();
        this.originalPrice = dto.getGoodsPrice();
    }
 
    public PriceDetailVO(){
 
    }
}