package com.gxwebsoft.shop.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 分销商提现明细表
 *
 * @author 科技小王子
 * @since 2025-08-11 23:51:41
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "ShopDealerWithdraw对象", description = "分销商提现明细表")
public class ShopDealerWithdraw implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

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

    @Schema(description = "分销商用户ID")
    private Integer userId;

    @Schema(description = "昵称")
    @TableField(exist = false)
    private String nickName;

    @Schema(description = "头像")
    @TableField(exist = false)
    private String avatar;

    @Schema(description = "手机号")
    @TableField(exist = false)
    private String phone;

    @Schema(description = "真实姓名")
    @TableField(exist = false)
    private String realName;

    @Schema(description = "提现金额")
    private BigDecimal money;

    @Schema(description = "打款方式 (10微信 20支付宝 30银行卡)")
    private Integer payType;

    @Schema(description = "支付宝姓名")
    private String alipayName;

    @Schema(description = "支付宝账号")
    private String alipayAccount;

    @Schema(description = "开户行名称")
    private String bankName;

    @Schema(description = "银行开户名")
    private String bankAccount;

    @Schema(description = "银行卡号")
    private String bankCard;

    @Schema(description = "申请状态 (10待审核 20审核通过 30驳回 40已打款)")
    private Integer applyStatus;

    @Schema(description = "审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime auditTime;

    @Schema(description = "驳回原因")
    private String rejectReason;

    @Schema(description = "上传支付凭证")
    private String image;

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

    @Schema(description = "来源客户端(APP、H5、小程序等)")
    private String platform;

    @Schema(description = "微信openId")
    @TableField(exist = false)
    private String openId;

    @Schema(description = "公众号openId")
    @TableField(exist = false)
    private String officeOpenid;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}
