/*
 * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.yami.shop.distribution.comment.model;

import com.yami.shop.distribution.comment.vo.DistributionUserVO;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import com.baomidou.mybatisplus.annotation.*;

@Data
@TableName( "tz_distribution_withdraw_cash")
public class DistributionWithdrawCash {
    /**
     * 提现记录id
     */
    @TableId
    private Long withdrawCashId;

    /**
     * 钱包id
     */
    private Long walletId;

    /**
     * 金额
     */
    private Double amount;


    /**
     * 手续费
     */
    private Double fee;

    /**
     * 类型(0 手动提现 1自动提现)
     */
    private Integer type;

    /**
     * 资金流向(1企业付款到微信零钱)
     */

    private Integer moneyFlow;

    /**
     * 流水号
     */

    private String merchantOrderId;

    /**
     * 乐观锁
     */
    @Version
    private Integer version;

    /**
     * 创建时间
     */

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;


    /**
     * 提现状态(0:申请中 1:提现成功 -1:提现失败)
     */
    private Integer state;

    /**
     * 关联分销员
     */
    @TableField(exist = false)
    private DistributionUserVO distributionUser;

}
