package com.gxwebsoft.common.system.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 *
 *
 * @author 科技小王子
 * @since 2024-05-10 18:02:54
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "OrderInfo对象", description = "")
@TableName("sys_order_info")
public class OrderInfo implements Serializable {
    private static final long serialVersionUID = 1L;

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

    @Schema(description = "关联订单表id")
    private Integer oid;

    @Schema(description = "关联场馆id")
    private Integer sid;

    @Schema(description = "关联场地id")
    private Integer fid;

    @Schema(description = "场馆")
    private String siteName;

    @Schema(description = "场地")
    private String fieldName;

    @Schema(description = "预约时间段")
    private String dateTime;

    @Schema(description = "单价")
    private BigDecimal price;

    @Schema(description = "儿童价")
    private BigDecimal childrenPrice;

    @Schema(description = "成人人数")
    private Integer adultNum;

    @Schema(description = "儿童人数")
    private Integer childrenNum;

    @Schema(description = "1已付款，2未付款，3无需付款或占用状态")
    private Integer payStatus;

    @Schema(description = "是否免费：1免费、2收费")
    private Integer isFree;

    @Schema(description = "是否支持儿童票：1支持，2不支持")
    private Integer isChildren;

    @Schema(description = "预订类型：1全场，2半场")
    private Integer type;

    @Schema(description = "组合数据:日期+时间段+场馆id+场地id")
    private String mergeData;

    @Schema(description = "开场时间")
    private Integer startTime;

    @Schema(description = "下单时间")
    private Long orderTime;

    @Schema(description = "毫秒时间戳")
    private Long timeFlag;

    @Schema(description = "系统版本")
    private Integer version;

    @Schema(description = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

}
