RiderBalance.java 730 Bytes
package com.diligrp.rider.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 骑手余额流水表
 */
@Data
@TableName("rider_balance")
public class RiderBalance {

    @TableId(type = IdType.AUTO)
    private Long id;

    /** 骑手ID */
    private Long uid;

    /** 变动类型:1=收入 2=提现 */
    private Integer type;

    /** 关联动作(如:order_complete) */
    private String action;

    /** 关联ID(如订单ID) */
    private Long actionId;

    /** 订单号 */
    private String orderNo;

    /** 变动金额 */
    private BigDecimal nums;

    /** 变动后余额 */
    private BigDecimal total;

    private Long addTime;
}