/*
 * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yami.shop.common.serializer.json.ImgJsonSerializer;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * 商家提现申请信息
 *
 * @author Dwl
 * @date 2019-09-19 14:22:08
 */
@Data
@TableName("tz_shop_withdraw_cash")
public class ShopWithdrawCash implements Serializable{
    private static final long serialVersionUID = 1L;

    /**
     * 提现id
     */
    @TableId
    private Long cashId;
    /**
     * 店铺id
     */
    private Long shopId;
    /**
     * 审核人id
     */
    private Long auditorId;
    /**
     * 提现金额
     */
    private Double amount;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;
    /**
     * 审核时间
     */
    private Date auditingTime;
    /**
     * 0 未审核 1已通过 -1未通过
     */
    private Integer status;
    /**
     * 平台备注
     */
    private String remarks;
    /**
     * 店铺备注
     */
    private String shopRemarks;
    /**
     * 付款户名
     */
    private String payingAccount;
    /**
     * 汇款账户
     */
    private String payingCardNo;
    /**
     * 汇款时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String payingTime;

    /**
     * 收款银行卡id
     */
    private Long shopBankCardId;
    /**
     * 店铺名称
     */
    @TableField(exist = false)
    private String shopName;
    /**
     * 店铺名称
     */
    @TableField(exist = false)
    private String code;

    /**
     * 店铺logo
     */
    @TableField(exist = false)
    @JsonSerialize(using = ImgJsonSerializer.class)
    private String shopLogo;

    /**
     * 收款银行卡信息
     */
    @TableField(exist = false)
    private ShopBankCard shopBankCard;


}
