新版仿ok交易所-后端
1
zj
2025-09-30 0c389d73cc79a0027cf779721c6bf184b12f5d86
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
49
package com.yami.trading.bean.future.domain;
 
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yami.trading.common.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
 * 交割合约Entity
 * @author lucas
 * @version 2023-04-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_profit_loss_config")
public class ProfitLossConfig extends BaseEntity {
 
    /**
     * 盈利
     */
    public final static String TYPE_PROFIT = "profit";
    public final static String TYPE_LOSS = "loss";
    public final static String TYPE_BUY_PROFIT = "buy_profit";
    public final static String TYPE_SELL_PROFIT = "sell_profit";
 
    private static final long serialVersionUID = 1L;
 
    /**
     * 买多盈利并且买空亏损
     */
    public final static String TYPE_BUY_PROFIT_SELL_LOSS = "buy_profit_sell_loss";
    /**
     * 买空盈利并且买多亏损
     */
    public final static String TYPE_SELL_PROFIT_BUY_LOSS = "sell_profit_buy_loss";
    /**
     * PARTY_ID
     */
    private String partyId;
    /**
     * REMARK
     */
    private String remark;
    /**
     *     * 见TYPE_* 1 盈利,2亏损,3 买多盈利,4买空盈利
     */
    private String type;
 
}