package com.gxwebsoft.shop.param;

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

import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 场地查询参数
 *
 * @author 科技小王子
 * @since 2024-05-14 13:20:04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "OrderInfoParam对象", description = "场地查询参数")
public class OrderInfoParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    @QueryField(type = QueryType.EQ)
    private Integer id;

    @ApiModelProperty(value = "关联订单表id")
    @QueryField(type = QueryType.EQ)
    private Integer orderId;

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

    @ApiModelProperty(value = "关联商户ID")
    @QueryField(type = QueryType.EQ)
    private Integer merchantId;

    @ApiModelProperty(value = "商户名称")
    private String merchantName;

    @ApiModelProperty(value = "关联场地id")
    @QueryField(type = QueryType.EQ)
    private Integer fieldId;

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

    @ApiModelProperty(value = "单价")
    @QueryField(type = QueryType.EQ)
    private BigDecimal price;

    @ApiModelProperty(value = "儿童价")
    @QueryField(type = QueryType.EQ)
    private BigDecimal childrenPrice;

    @ApiModelProperty(value = "成人人数")
    @QueryField(type = QueryType.EQ)
    private Integer adultNum;

    @ApiModelProperty(value = "儿童人数")
    @QueryField(type = QueryType.EQ)
    private Integer childrenNum;

    @ApiModelProperty(value = "0 未付款 1已付款，2无需付款或占用状态")
    @QueryField(type = QueryType.EQ)
    private Integer payStatus;

    @ApiModelProperty(value = "是否免费：0收费、1免费")
    @QueryField(type = QueryType.EQ)
    private Boolean isFree;

    @ApiModelProperty(value = "是否支持儿童票：0不支持、1支持")
    @QueryField(type = QueryType.EQ)
    private Boolean isChildren;

    @ApiModelProperty(value = "系统版本 0当前版本 其他版本")
    @QueryField(type = QueryType.EQ)
    private Integer version;

    @ApiModelProperty(value = "预订类型：0全场，1半场")
    @QueryField(type = QueryType.EQ)
    private Boolean isHalf;

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

    @ApiModelProperty(value = "预定日期")
    private String dateTime;

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

    @ApiModelProperty(value = "结束时间")
    private String endTime;

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

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "用户id")
    @QueryField(type = QueryType.EQ)
    private Integer userId;

    @ApiModelProperty(value = "当前时间")
    @QueryField(type = QueryType.GT)
    private Date expirationTime;

}
