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

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

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

/**
 * 业务表：kpi_daily_park_revenue
 * @author zhonglei.xu
 */
@Data
@TableName("kpi_daily_park_revenue")
public class KpiDailyParkRevenue {
    @TableId(type = IdType.AUTO)
    private Long id;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField("report_date")
    private LocalDate reportDate;

    @TableField("park_code")
    private String parkCode;

    @TableField("ticket_revenue")
    private BigDecimal ticketRevenue;

    @TableField("retail_revenue")
    private BigDecimal retailRevenue;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Riyadh")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("synch_time")
    private Date synchTime;

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