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.LocalDateTime;

/**
 * 园区KPI指标实体类
 */
@Data
@TableName("kpi_park")
public class KpiPark {

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

    @TableField("park_code")
    private String parkCode;

    @TableField("gss")
    private BigDecimal gss;

    @TableField("gss_yesterday")
    private BigDecimal gssYesterday;

    @TableField("nps")
    private BigDecimal nps;

    @TableField("nps_yesterday")
    private BigDecimal npsYesterday;

    @TableField("visitor_in_park")
    private Integer visitorInPark;

    @TableField("total_attendance")
    private Integer totalAttendance;

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

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

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