package com.ltkj.mall.domain;
|
|
import java.math.BigDecimal;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
import com.ltkj.common.annotation.Excel;
|
import com.ltkj.common.core.domain.BaseEntity;
|
import lombok.Data;
|
import org.apache.commons.lang3.builder.ToStringBuilder;
|
import org.apache.commons.lang3.builder.ToStringStyle;
|
|
/**
|
* 订单商品对象 mall_order_goods
|
*
|
* @author ltkj_赵佳豪&李格
|
* @date 2023-07-12
|
*/
|
@Data
|
public class MallOrderGoods extends BaseEntity {
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* id
|
*/
|
@TableId(type = IdType.AUTO)
|
@JsonSerialize(using = ToStringSerializer.class)
|
private Long id;
|
|
/**
|
* 订单表的订单ID
|
*/
|
@Excel(name = "订单表的订单ID")
|
@JsonSerialize(using = ToStringSerializer.class)
|
private Long orderId;
|
|
/**
|
* 商品表的商品ID
|
*/
|
@Excel(name = "商品表的商品ID")
|
@JsonSerialize(using = ToStringSerializer.class)
|
private Long goodsId;
|
|
/**
|
* 商品名称
|
*/
|
@Excel(name = "商品名称")
|
private String goodsName;
|
|
/**
|
* 商品编号
|
*/
|
@Excel(name = "商品编号")
|
private String goodsSn;
|
|
/**
|
* 商品货品表的货品ID
|
*/
|
@Excel(name = "商品货品表的货品ID")
|
@JsonSerialize(using = ToStringSerializer.class)
|
private Long productId;
|
|
/**
|
* 商品货品的购买数量
|
*/
|
@Excel(name = "商品货品的购买数量")
|
@JsonSerialize(using = ToStringSerializer.class)
|
private Long number;
|
|
/**
|
* 商品货品的售价
|
*/
|
@Excel(name = "商品货品的售价")
|
private BigDecimal price;
|
|
/**
|
* 商品货品的规格列表
|
*/
|
@Excel(name = "商品货品的规格列表")
|
private String specifications;
|
|
/**
|
* 商品货品图片或者商品图片
|
*/
|
@Excel(name = "商品货品图片或者商品图片")
|
private String picUrl;
|
|
/**
|
* 订单商品评论,如果是-1,则超期不能评价;如果是0,则可以评价;如果其他值,则是comment表里面的评论ID。
|
*/
|
@Excel(name = "订单商品评论,如果是-1,则超期不能评价;如果是0,则可以评价;如果其他值,则是comment表里面的评论ID。")
|
@JsonSerialize(using = ToStringSerializer.class)
|
private Long comment;
|
|
/**
|
* 进价
|
*/
|
@Excel(name = "进价")
|
private BigDecimal purchasePrice;
|
|
/**
|
* 专柜价格
|
*/
|
@Excel(name = "专柜价格")
|
private BigDecimal counterPrice;
|
@Override
|
public String toString() {
|
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
|
.append("id", getId())
|
.append("orderId", getOrderId())
|
.append("goodsId", getGoodsId())
|
.append("goodsName", getGoodsName())
|
.append("goodsSn", getGoodsSn())
|
.append("productId", getProductId())
|
.append("number", getNumber())
|
.append("price", getPrice())
|
.append("specifications", getSpecifications())
|
.append("picUrl", getPicUrl())
|
.append("comment", getComment())
|
.append("purchasePrice", getPurchasePrice())
|
.append("counterPrice", getCounterPrice())
|
.append("createTime", getCreateTime())
|
.append("createBy", getCreateBy())
|
.append("updateTime", getUpdateTime())
|
.append("updateBy", getUpdateBy())
|
.append("deleted", getDeleted())
|
.toString();
|
}
|
}
|