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

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

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

/**
 * 酒店KPI指标实体类
 * @author zhonglei.xu
 */
@Data
@TableName("kpi_hotel")
public class KpiHotel {

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

    @TableField("hotel_code")
    private String hotelCode;

    @TableField("gss")
    private BigDecimal gss;

    @TableField("gss_yesterday")
    private BigDecimal gssYesterday;

    @TableField("nps")
    private BigDecimal nps;

    @TableField("nps_yesterday")
    private BigDecimal npsYesterday;

    @TableField("check_in")
    private Integer checkIn;

    @TableField("booking")
    private Integer booking;

    @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;
}