package com.centreproject.system.domain.kpi.park;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 园区票类型统计实体类
 * 对应表：park_ticket_type
 * @author zhonglei.xu
 */
@Data
@TableName("park_ticket_type")
public class ParkTicketType {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("park_code")
    private String parkCode;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("statistics_date")
    private LocalDate statisticsDate;

    @TableField("monthly_sales_total")
    private BigDecimal monthlySalesTotal;

    @TableField("ticket_type")
    private String ticketType;

    @TableField("ticket_rate")
    private BigDecimal ticketRate;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("synch_time")
    private LocalDateTime synchTime;

    @TableField("sync_trace_id")
    private String syncTraceId;
}