package com.liquidnet.service.kylin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
public class KylinLackRegisters implements Serializable  ,Cloneable{

    private static final long serialVersionUID = 1L;

    @TableId(value = "mid", type = IdType.AUTO)
    private Integer mid;

    /**
     * lack_registers_id
     */
    private String lackRegistersId;

    /**
     * performance_id
     */
    private String performanceId;

    /**
     * ticket_id
     */
    private String ticketId;

    /**
     * user_id
     */
    private String userId;

    /**
     * user_name
     */
    private String userName;

    /**
     * user_mobile
     */
    private String userMobile;

    /**
     * send_status
     */
    private Integer sendStatus;

    /**
     * ip_address
     */
    private String ipAddress;

    /**
     * created_at
     */
    private LocalDateTime createdAt;

    /**
     * updated_at
     */
    private LocalDateTime updatedAt;

    /**
     * 获取 支付回调 数据库参数
     *
     * @return
     */
    public Object[] getInsertObj() {
        return new Object[]{
                lackRegistersId, performanceId, ticketId,userId,userName,userMobile,0,ipAddress,createdAt
        };
    }

    private static final KylinLackRegisters obj = new KylinLackRegisters();
    public static KylinLackRegisters getNew() {
        try {
            return (KylinLackRegisters) obj.clone();
        } catch (CloneNotSupportedException e) {
            return new KylinLackRegisters();
        }
    }
}
