package com.tzy.common.dto.group;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.teasoft.bee.osql.annotation.Entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Entity("card_group_order_info")
public class GroupOrderUserDTO implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long id;

    private Long userId;
    //订单编码
    private String orderNo;
    //购买用户头像
    private String appUserAvatar;
    //购买数量
    private Integer purchaseCount;
    private Integer groupInfoId;
    private Integer status;
    private Integer point;
    /**
     * 姓名
     */
    private String shippingAddressLinkname;
    /**
     * 收货地址
     */
    private String shippingAddress;
    /**
     * 联系方式
     */
    private String shippingAddressPhone;
    private String orderSubType;
    private String appUserNickName;
    /** 折扣金额 */
    private BigDecimal discount;
    /** 应付款 */
    private BigDecimal accountsPayable;
    /** 应付金额,实付金额改为tradeAmount */
    private BigDecimal actualPayment;
    /**平台优惠劵优惠金额,原discount为商家优惠劵*/
    private BigDecimal platformDiscount;
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private String pointType;
    private BigDecimal brandDiscountAmount; // 品牌会员折扣金额
    private BigDecimal firstActAmount; // 首购金优惠
    /**
     * 是否支持商家代开,0:默认自开,1:商家代开
     */
    private Integer merchantOpen;
    private Integer unLockCount;
    private Integer unLockStatus;
}