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:54
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "GltTicketTemplateParam对象", description = "水票查询参数")
public class GltTicketTemplateParam extends BaseParam {
    private static final long serialVersionUID = 1L;

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

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

    @Schema(description = "名称")
    private String name;

    @Schema(description = "启用")
    @QueryField(type = QueryType.EQ)
    private Boolean enabled;

    @Schema(description = "单位名称")
    private String unitName;

    @Schema(description = "最小购买数量")
    @QueryField(type = QueryType.EQ)
    private Integer minBuyQty;

    @Schema(description = "起始发送数量")
    @QueryField(type = QueryType.EQ)
    private Integer startSendQty;

    @Schema(description = "买赠：买1送4 => gift_multiplier=4")
    @QueryField(type = QueryType.EQ)
    private Integer giftMultiplier;

    @Schema(description = "是否把购买量也计入套票总量（默认仅计入赠送量）")
    @QueryField(type = QueryType.EQ)
    private Boolean includeBuyQty;

    @Schema(description = "每期释放数量（默认每月释放10）")
    @QueryField(type = QueryType.EQ)
    private Integer monthlyReleaseQty;

    @Schema(description = "总共释放多少期（若配置>0，则按期数平均分摊）")
    @QueryField(type = QueryType.EQ)
    private Integer releasePeriods;

    @Schema(description = "首期释放时机：0=支付成功当刻；1=下个月同日")
    @QueryField(type = QueryType.EQ)
    private Integer firstReleaseMode;

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

}
