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;
|
}
|
|
}
|