package com.kym.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 平台分账记录表
 * </p>
 *
 * @author skyline
 * @since 2025-02-24
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_split_record")
public class SplitRecord extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * @deprecated V2 结算方案中平台服务费由 t_platform_revenue_record 独立记录，不再使用此类型
     */
    @Deprecated
    public static final Integer TYPE_PLATFORM = 0;
    public static final Integer TYPE_RECHARGE = 1;
    public static final Integer TYPE_CONSUME = 2;
    /** @deprecated V2 结算方案不再使用解冻类型 */
    @Deprecated
    public static final Integer TYPE_UNFREEZE = 3;
    public static final Integer TYPE_CROSS_EXPEND = 4;
    public static final Integer TYPE_REFUND = 5;
    public static final Integer TYPE_CROSS_INCOME = 6;

    /**
     * 出账站点ID
     */
    private String fromStationId;

    /**
     * 入账站点ID
     */
    private String toStationId;

    /**
     * 分账交易流水号
     */
    private String tradeNo;

    /**
     * 分账交易金额（分）
     */
    private Integer amount;

    /**
     * 交易类型(0-平台服务费 1-充值 2-消费 3-解冻 4-跨店支出 5-退款 6-跨店收入)
     */
    private Integer type;

    /**
     * 状态(0-处理中 1-成功 2-失败)
     */
    private Integer status;
}
