peng
2025-07-07 b83b070dc8cc823c877aa3a2ade134272ec0641a
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package cn.lili.modules.lmk.domain.vo;
 
import cn.lili.base.AbsVo;
import cn.lili.modules.lmk.domain.entity.PriceChange;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;
import org.springframework.lang.NonNull;
 
import java.math.BigDecimal;
 
/**
 * 价格变动表展示
 *
 * @author peng
 * @since 2025-07-03
 */
@Data
@ApiModel(value = "价格变动表响应数据", description = "价格变动表响应数据")
public class PriceChangeVO extends AbsVo {
 
    /** 店铺id */
    @ApiModelProperty("店铺id")
    private Long storeId;
 
    /** 商品id */
    @ApiModelProperty("商品id")
    private Long goodsId;
 
    /** 最小销售单元id */
    @ApiModelProperty("最小销售单元id")
    private Long skuId;
 
    /** 原价 */
    @ApiModelProperty("原价")
    private BigDecimal previousPrice;
 
    /** 现价 */
    @ApiModelProperty("现价")
    private BigDecimal currentPrice;
 
    /** 原抽成比例 */
    @ApiModelProperty("原抽成比例")
    private BigDecimal previousCommission;
 
    /** 现在抽成比例 */
    @ApiModelProperty("现在抽成比例")
    private BigDecimal currentCommission;
 
    /** 操作人员姓名 */
    @ApiModelProperty("操作人员姓名")
    private String operatorName;
 
    /** 操作人员id */
    @ApiModelProperty("操作人员id")
    private Long operatorId;
 
    /** 审核状态 */
    @ApiModelProperty("审核状态")
    private String examineStatus;
 
    /** 操作人员类型 */
    @ApiModelProperty("操作人员类型")
    private String operatorType;
 
    public static PriceChangeVO getVoByEntity(@NonNull PriceChange entity, PriceChangeVO vo) {
        if(vo == null) {
            vo = new PriceChangeVO();
        }
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
 
}