package com.gxwebsoft.common.system.param;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 查询参数
 *
 * @author 科技小王子
 * @since 2024-05-10 18:02:54
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "OrderInfoParam对象", description = "查询参数")
public class OrderInfoParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @QueryField(type = QueryType.EQ)
    private Integer id;

    @Schema(description = "关联订单表id")
    @QueryField(type = QueryType.EQ)
    private Integer oid;

    @Schema(description = "关联场馆id")
    @QueryField(type = QueryType.EQ)
    private Integer sid;

    @Schema(description = "关联场地id")
    @QueryField(type = QueryType.EQ)
    private Integer fid;

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

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

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

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

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

    @Schema(description = "成人人数")
    @QueryField(type = QueryType.EQ)
    private Boolean adultNum;

    @Schema(description = "儿童人数")
    @QueryField(type = QueryType.EQ)
    private Boolean childrenNum;

    @Schema(description = "1已付款，2未付款，3无需付款或占用状态")
    @QueryField(type = QueryType.EQ)
    private Boolean payStatus;

    @Schema(description = "是否免费：1免费、2收费")
    @QueryField(type = QueryType.EQ)
    private Boolean isFree;

    @Schema(description = "是否支持儿童票：1支持，2不支持")
    @QueryField(type = QueryType.EQ)
    private Boolean isChildren;

    @Schema(description = "预订类型：1全场，2半场")
    @QueryField(type = QueryType.EQ)
    private Boolean type;

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

    @Schema(description = "开场时间")
    @QueryField(type = QueryType.EQ)
    private Integer startTime;

    @Schema(description = "下单时间")
    @QueryField(type = QueryType.EQ)
    private Integer orderTime;

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

    @Schema(description = "是否删除, 0否, 1是")
    @QueryField(type = QueryType.EQ)
    private Integer deleted;

}
