package com.hzs.common.domain.member.account;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.hzs.common.core.web.domain.BusinessEntity;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * 会员转账表
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("CU_MEMBER_TRANSFER")
@KeySequence("CU_MEMBER_TRANSFER_SEQ")
public class CuMemberTransfer extends BusinessEntity {


    private static final long serialVersionUID = -8046087437684644428L;
    /**
     * 主键
     */
    @TableId("PK_ID")
    private Long pkId;

    /**
     * 转出编号
     */
    @TableField("PK_MEMBER")
    private Long pkMember;

    /**
     * 申请单号
     */
    @TableField("TRANSFER_CODE")
    private String transferCode;

    /**
     * 账户类型(来源于参照：币种配置)
     */
    @TableField("PK_ACCOUNT")
    private Integer pkAccount;

    /**
     * 转入编号
     */
    @TableField("TO_PK_MEMBER")
    private Long toPkMember;

    /**
     * 转入账户类型(来源于参照：币种配置)
     */
    @TableField("PK_TO_ACCOUNT")
    private Integer pkToAccount;

    /**
     * 汇率
     */
    @TableField("PK_RATE")
    private Integer pkRate;

    /**
     * 转账金额
     */
    @TableField("TRANSFER_MONEY")
    private BigDecimal transferMoney;

    /**
     * 备注
     */
    @TableField("REMARKS")
    private String remarks;

    /**
     * 手续费
     */
    @TableField("SERVICE_CHARGE")
    private BigDecimal serviceCharge;

    /**
     * 实发金额
     */
    @TableField("ISSUED_AMOUNT")
    private BigDecimal issuedAmount;

}
