package com.clx.performance.model.settle;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.msl.common.config.KeyColumn;
import com.msl.common.model.HasKey;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @author kavin
 * Date 2023-12-19
 * Time 11:34
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("network_case_out_record")
public class NetworkCaseOutRecord implements HasKey<Integer> {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("case_out_no")
    @ApiModelProperty("提现单号")
    private Long caseOutNo;

    @TableField("driver_user_no")
    @ApiModelProperty("司机编码")
    private Long driverUserNo;

    @TableField("driver_user_name")
    @ApiModelProperty("司机名称")
    private String driverUserName;

    @TableField("mobile")
    @ApiModelProperty("联系电话")
    private String mobile;

    @TableField("payee")
    @ApiModelProperty("收款人")
    private String payee;

    @TableField("bank")
    @ApiModelProperty("开户行")
    private String bank;

    @TableField("collection_bank_code")
    @ApiModelProperty("收款银行账户")
    private String collectionBankCode;

    @TableField("status")
    @ApiModelProperty("状态 10：待平台付款 20：已付款")
    private Integer status;

    @TableField("platform")
    @ApiModelProperty("平台")
    private String platform;

    @TableField("relation_id")
    @ApiModelProperty("")
    private Long relationId;

    @TableField("order_id")
    @ApiModelProperty("订单ID")
    private Integer orderId;

    @TableField("order_no")
    @ApiModelProperty("订单编号")
    private String orderNo;

    @TableField("order_child_id")
    @ApiModelProperty("运单ID")
    private Integer orderChildId;

    @TableField("order_child_no")
    @ApiModelProperty("运单编号")
    private String orderChildNo;

    @TableField("alteration_balance")
    @ApiModelProperty("变动金额")
    private BigDecimal alterationBalance;

    @TableField("frozen_balance")
    @ApiModelProperty("冻结金额")
    private BigDecimal frozenBalance;

    @TableField("usable_balance")
    @ApiModelProperty("可用余额")
    private BigDecimal usableBalance;

    @TableField("account_balance")
    @ApiModelProperty("账户余额")
    private BigDecimal accountBalance;

    @TableField("take_out_balance")
    @ApiModelProperty("扣除金额")
    private BigDecimal takeOutBalance;

    @TableField("create_by")
    @ApiModelProperty("操作人")
    private String createBy;

    @TableField("create_time")
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @TableField("finish_time")
    @ApiModelProperty("提现完成时间")
    private LocalDateTime finishTime;

    @TableField("modified_time")
    @ApiModelProperty("修改时间")
    private LocalDateTime modifiedTime;

    @Override
    @KeyColumn("id")
    public Integer gainKey() {
    return this.id;
    }
}
