package com.gxwebsoft.apps.param;

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;

import java.math.BigDecimal;

/**
 * 查询参数
 *
 * @author 科技小王子
 * @since 2023-01-08 12:22:50
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "HualalaCardParam对象", description = "查询参数")
public class HualalaCardParam extends BaseParam {
    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "groupID")
    private String groupId;

    @ApiModelProperty(value = "shopID")
    private String shopId;

    @ApiModelProperty(value = "网速会员id")
    @QueryField(type = QueryType.EQ)
    private Integer userId;

    @ApiModelProperty(value = "会员卡ID")
    private String cardId;

    private String cardTypeId;

    @ApiModelProperty(value = "会员卡等级ID")
    private String cardLevelId;

    @ApiModelProperty(value = "会员卡等级名称")
    private String cardLevelName;

    @ApiModelProperty(value = "卡状态　10：正常　20：挂失中　30：冻结　40：注销（作废）50：已过期")
    private String cardStatus;

    private String customerId;

    @ApiModelProperty(value = "会员卡入会店铺字段")
    private String createShopId;

    @ApiModelProperty(value = "入会店铺名称")
    private String createShopName;

    @ApiModelProperty(value = "卡号")
    private String cardNo;

    @ApiModelProperty(value = "姓名")
    private String customerName;

    @ApiModelProperty(value = "	手机号")
    private String customerMobile;

    @ApiModelProperty(value = "性别 0：女 1：男 2：未知")
    @QueryField(type = QueryType.EQ)
    private Integer customerSex;

    @ApiModelProperty(value = "生日")
    private String customerBirthday;

    @ApiModelProperty(value = "卡余额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal cardBalance;

    @ApiModelProperty(value = "积分余额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal pointBalance;

    @ApiModelProperty(value = "累计储值金额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal saveMoneyTotal;

    @ApiModelProperty(value = "累计消费金额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal consumptionTotal;

    @ApiModelProperty(value = "累计消费次数")
    @QueryField(type = QueryType.EQ)
    private Integer consumptionCount;

    @ApiModelProperty(value = "当前等级积分")
    @QueryField(type = QueryType.EQ)
    private Integer grade;

    @ApiModelProperty(value = "下一等级积分")
    @QueryField(type = QueryType.EQ)
    private Integer nextLevelGrade;

    @ApiModelProperty(value = "有效期至(yyyyMMddHHmmss) 0：表示永久有效")
    private String expireTime;

    @ApiModelProperty(value = "最后一次交易时间")
    private String lastTransTime;

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

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

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

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

    @ApiModelProperty(value = "商户编码")
    private String merchantCode;

}
