package com.gxwebsoft.shop.param;

import java.math.BigDecimal;
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.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 场地查询参数
 *
 * @author 科技小王子
 * @since 2025-01-11 10:45:12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "ShopOrderInfoParam对象", description = "场地查询参数")
public class ShopOrderInfoParam extends BaseParam {
    private static final long serialVersionUID = 1L;

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

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

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

    @Schema(description = "关联商户ID")
    @QueryField(type = QueryType.EQ)
    private Long merchantId;

    @Schema(description = "商户名称")
    private String merchantName;

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

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

    @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 Integer adultNum;

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

    @Schema(description = "已核销的成人票数")
    @QueryField(type = QueryType.EQ)
    private Integer adultNumUse;

    @Schema(description = "已核销的儿童票数")
    @QueryField(type = QueryType.EQ)
    private Integer childrenNumUse;

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

    @Schema(description = "0未使用，1已完成，2已取消，3取消中，4退款申请中，5退款被拒绝，6退款成功，7客户端申请退款")
    @QueryField(type = QueryType.EQ)
    private Integer orderStatus;

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

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

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

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

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

    @Schema(description = "预定日期")
    private String dateTime;

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

    @Schema(description = "结束时间")
    private String endTime;

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

    @Schema(description = "过期时间")
    private String expirationTime;

    @Schema(description = "备注")
    private String comments;

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

}
