新版仿ok交易所-后端
zyy
2025-09-04 10a06cf876b3dfce68d36ee71cba0cb4fa393b94
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package com.yami.trading.bean.model;
 
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.yami.trading.common.domain.BaseEntity;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
 
import java.math.BigDecimal;
 
/**
 * @program: trading-order-master
 * @description: 资金账户
 * @create: 2025-01-08 17:41
 **/
@Data
@TableName("tz_capital_wallet")
@Slf4j
public class CapitaltWallet extends BaseEntity {
 
    /**
     * 关联 party entity
     */
    private String userId;
    /**
     * 现金
     */
    private BigDecimal money =new BigDecimal(0);
 
 
    /**
     * 锁定金额
     */
    private BigDecimal lockMoney =new BigDecimal(0);
 
    /**
     * 冻结金额
     */
    private BigDecimal freezeMoney =new BigDecimal(0);
 
    @Version
    private  int version;
 
    public void setMoney(BigDecimal money) {
        this.money = money;
    }
 
}