package com.gxwebsoft.glt.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 lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 我的水票查询参数
 *
 * @author 科技小王子
 * @since 2026-02-03 18:55:55
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "GltUserTicketParam对象", description = "我的水票查询参数")
public class GltUserTicketParam extends BaseParam {
    private static final long serialVersionUID = 1L;

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

    @Schema(description = "模板ID")
    @QueryField(type = QueryType.EQ)
    private Integer templateId;

    @Schema(description = "商品ID")
    @QueryField(type = QueryType.EQ)
    private Integer goodsId;

    @Schema(description = "订单ID")
    @QueryField(type = QueryType.EQ)
    private Integer orderId;

    @Schema(description = "订单编号")
    private String orderNo;

    @Schema(description = "订单状态")
    @QueryField(type = QueryType.EQ)
    private Integer orderStatus;

    @Schema(description = "订单商品ID")
    @QueryField(type = QueryType.EQ)
    private Integer orderGoodsId;

    @Schema(description = "总数量")
    @QueryField(type = QueryType.EQ)
    private Integer totalQty;

    @Schema(description = "可用数量")
    @QueryField(type = QueryType.EQ)
    private Integer availableQty;

    @Schema(description = "冻结数量")
    @QueryField(type = QueryType.EQ)
    private Integer frozenQty;

    @Schema(description = "已使用数量")
    @QueryField(type = QueryType.EQ)
    private Integer usedQty;

    @Schema(description = "已释放数量")
    @QueryField(type = QueryType.EQ)
    private Integer releasedQty;

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

    @Schema(description = "排序(数字越小越靠前)")
    @QueryField(type = QueryType.EQ)
    private Integer sortNumber;

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

    @Schema(description = "状态, 0正常, 1冻结")
    @QueryField(type = QueryType.EQ)
    private Integer status;

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

}
