package com.xinelu.manage.vo.orderDetails;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 消息推送商品订单信息
 *
 * @author zhangheng
 * @date 2023-03—15
 */
@Data
public class GoodsOrderAndDetails implements Serializable {
    private static final long serialVersionUID = 5568311646943813063L;

    /**
     * 会员id
     */
    private Long patientId;

    /**
     * 用户微信openid
     */
    private String openid;

    /**
     * 订单编号
     */
    private String orderNo;

    /**
     * 订单总金额
     */
    private BigDecimal totalPrice;

    /**
     * 下单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime orderTime;

    /**
     * 商品名称
     */
    private String goodsName;

    /**
     * 商品数量
     */
    private Integer goodsCount;
}
