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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 *
 *
 * @author 科技小王子
 * @since 2024-05-10 18:02:54
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "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;

    @ApiModelProperty(value = "关联订单表id")
    private Integer oid;

    @ApiModelProperty(value = "关联场馆id")
    private Integer sid;

    @ApiModelProperty(value = "关联场地id")
    private Integer fid;

    @ApiModelProperty(value = "场馆")
    private String siteName;

    @ApiModelProperty(value = "场地")
    private String fieldName;

    @ApiModelProperty(value = "预约时间段")
    private String dateTime;

    @ApiModelProperty(value = "单价")
    private BigDecimal price;

    @ApiModelProperty(value = "儿童价")
    private BigDecimal childrenPrice;

    @ApiModelProperty(value = "成人人数")
    private Integer adultNum;

    @ApiModelProperty(value = "儿童人数")
    private Integer childrenNum;

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

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

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

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

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

    @ApiModelProperty(value = "开场时间")
    private Integer startTime;

    @ApiModelProperty(value = "下单时间")
    private Long orderTime;

    @ApiModelProperty(value = "毫秒时间戳")
    private Long timeFlag;

    @ApiModelProperty(value = "系统版本")
    private Integer version;

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

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

}
