package com.nmgs.entity;

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 com.github.jeffreyning.mybatisplus.anno.MppMultiId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

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

/**
 * 加油信息表
 ACARNO
 LASTINTEGRATION
 PAYINTEGRATION
 RESTINTEGRATION
 PAYCTIME
 PAYTYPE
 */
@Data
@TableName("INTEGRATION_LIST_TABLE")
@NoArgsConstructor
@AllArgsConstructor
public class IntegrationList {

    @TableId(value = "ID")
    private Integer id;

    @TableField(value = "USERID")
    private Integer userId;

    @TableField(value = "ACARNO")
    private String aCarNo;

    @TableField(value = "LASTINTEGRATION")
    private BigDecimal lastIntegration;

    @TableField(value = "PAYINTEGRATION")
    private BigDecimal payIntegration;

    @TableField(value = "RESTINTEGRATION")
    private BigDecimal restIntegration;


    @TableField(value = "PAYTYPE")
    private String payType;


    @TableField(value = "PAYTIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date payTime;

    @TableField(value = "MONTHMILEGRANTTIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date monthMileGrantTime;

    @TableField(value = "TOTALADDINTEGRATION")
    private BigDecimal totalAddIntegration;

    @TableField(value = "OILENABLEINTEGRATION")
    private BigDecimal oilEnableIntegration;

    @TableField(value = "GASENABLEINTEGRATION")
    private BigDecimal gasEnableIntegration;

    @TableField(value = "SPENABLEINTEGRATION")
    private BigDecimal spEnableIntegration;

    @TableField(value = "CAFENABLEINTEGRATION")
    private BigDecimal cafEnableIntegration;

    @TableField(value = "STARLEVEL")
    private Integer starLevel;


    @TableField(exist = false)
    private String serviceAreaName;//服务器名称


}
