package com.sckw.payment.model;

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 lombok.Data;

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

/**
 * 货到付款记录表
* @date 2023-10-18 12:57:05
* @author xucaiqin
*/
@Data
@TableName(value = "kwp_wallet_receive")
public class KwpWalletReceive {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 流水号
     */
    @TableField(value = "order_no")
    private String orderNo;

    /**
     * uid
     */
    @TableField(value = "`uid`")
    private String uid;

    /**
     * 企业id
     */
    @TableField(value = "from_ent")
    private Long fromEnt;

    /**
     * filter
     */
    @TableField(value = "`filter`")
    private String filter;

    /**
     * 企业id
     */
    @TableField(value = "to_ent")
    private Long toEnt;

    /**
     * 电子钱包渠道
     */
    @TableField(value = "channel")
    private String channel;

    /**
     * 转账金额
     */
    @TableField(value = "money")
    private BigDecimal money;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 1-已提交 2-转帐中 3-转账失败 4-转账成功
     */
    @TableField(value = "`status`")
    private Integer status;

    /**
     * 创建人
     */
    @TableField(value = "create_by")
    private Long createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_by")
    private Long updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    /**
     * 0-正常 1-删除
     */
    @TableField(value = "del_flag")
    private Integer delFlag;
}
