package com.xxfc.platform.order.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 每日统计
 * @author Administrator
 */
@Data
public class DailyOrderStatistics {
    @Id
    @GeneratedValue(generator = "JDBC")
    private Integer id;

    /**
     * 日期
     */
    @Column(name = "one_day")
    private  String oneDay;

    /**
     * 成交总金额
     */
    @Column(name = "gmv")
    private BigDecimal gmv;


    /**
     * 创建时间
     */
    @Column(name = "crt_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date crtTime;
}
