package com.haha.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 订单商品明细表
 */
@Data
@TableName("t_order_goods")
public class OrderGoods implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long orderId;

    private String orderNo;

    private String activityId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long productId;

    private String code;

    private String barCode;

    private String productName;

    private String pic;

    private Integer productNum;

    private BigDecimal money;

    private BigDecimal originPrice;

    private BigDecimal price;

    private String deviceId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    private LocalDateTime createTime;
}
