package com.gxwebsoft.shop.param;

import com.baomidou.mybatisplus.annotation.TableField;
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 2022-11-30 15:10:54
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "MerchantParam对象", description = "商户管理查询参数")
public class MerchantParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商户ID")
    @QueryField(type = QueryType.EQ)
    private Integer merchantId;

    @ApiModelProperty(value = "商户名称")
    private String merchantName;

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

    @ApiModelProperty(value = "商户类型")
    private String merchantType;

    @ApiModelProperty(value = "当前可提现金额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal money;

    @ApiModelProperty(value = "已冻结金额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal freezeMoney;

    @ApiModelProperty(value = "累积提现金额")
    @QueryField(type = QueryType.EQ)
    private BigDecimal totalMoney;

    @ApiModelProperty(value = "商户logo")
    private String logo;

    @ApiModelProperty(value = "商户背景图片")
    private String background;

    @ApiModelProperty(value = "营业时间")
    private String merchantHours;

    @ApiModelProperty(value = "所在省份")
    private String province;

    @ApiModelProperty(value = "所在城市")
    private String city;

    @ApiModelProperty(value = "所在辖区")
    private String region;

    @ApiModelProperty(value = "详细地址")
    private String address;

    @ApiModelProperty(value = "商户详情")
    private String content;

    @ApiModelProperty(value = "商户坐标经纬度")
    private String lngAndLat;

    @ApiModelProperty(value = "geohash")
    private String geohash;

    @ApiModelProperty(value = "商户简介")
    private String summary;

    @ApiModelProperty(value = "打款方式 (10微信 20支付宝 30银行卡)")
    @QueryField(type = QueryType.EQ)
    private Integer payType;

    @ApiModelProperty(value = "支付宝姓名")
    private String alipayName;

    @ApiModelProperty(value = "支付宝账号")
    private String alipayAccount;

    @ApiModelProperty(value = "开户行名称")
    private String bankName;

    @ApiModelProperty(value = "银行开户名")
    private String bankAccount;

    @ApiModelProperty(value = "银行卡号")
    private String bankCard;

    @ApiModelProperty(value = "是否可编辑 0 商户可编辑 1 管理员可编辑")
    @QueryField(type = QueryType.EQ)
    private Integer isEdit;

    @ApiModelProperty(value = "是否支持自提核销(0否 1支持)")
    @QueryField(type = QueryType.EQ)
    private Integer isCheck;

    @ApiModelProperty(value = "商户主")
    @QueryField(type = QueryType.EQ)
    private Integer merchantOwner;

    @ApiModelProperty(value = "门店联系电话")
    @QueryField(type = QueryType.EQ)
    private String merchantPhone;

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

    @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 = "客户ID")
    @QueryField(type = QueryType.EQ)
    private Integer customerId;

    @ApiModelProperty("登录账号")
    @TableField(exist = false)
    private String username;

    @ApiModelProperty("用户昵称")
    @TableField(exist = false)
    private String nickname;

    @ApiModelProperty(value = "联系电话")
    @TableField(exist = false)
    private String phone;

    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;

    @ApiModelProperty(value = "会元等级ID")
    @QueryField(type = QueryType.EQ)
    private Integer gradeId;

}
