puzhibing
2026-03-23 623cd3f63889f3263ac13391c1885b669fec3d66
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
package com.xiaopeng.api.model.operation;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xiaopeng.common.core.web.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
 
import java.math.BigDecimal;
import java.time.LocalDateTime;
 
/**
 * <p>
 * 交易策略配置
 * </p>
 *
 * @author mitao
 * @since 2026-02-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("xp_trading_strategy")
@ApiModel(value="XpTradingStrategy对象", description="交易策略配置")
public class XpTradingStrategy extends BaseModel {
 
    private static final long serialVersionUID = 1L;
 
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    @ApiModelProperty(value = "用户每日取消订单数")
    private Integer cancleCount;
 
    @ApiModelProperty(value = "豁免金额")
    private BigDecimal exemptionAmount;
 
    @ApiModelProperty(value = "是否长期有效 1=是 0=否")
    private Boolean isLongValid;
 
    @ApiModelProperty(value = "豁免开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime exemptionStartTime;
 
    @ApiModelProperty(value = "豁免结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime exemptionEndTime;
 
    @ApiModelProperty(value = "豁免角色 逗号分割 0=全部 1=新客 2=老客 3=流失召回 4=媒体")
    private String exemptionRole;
 
    @ApiModelProperty(value = "免密授权金额")
    private BigDecimal passwordFreeAmount;
 
    @ApiModelProperty(value = "预付额度  订单大于金额需预付")
    private BigDecimal prepaidLimit;
 
    @ApiModelProperty(value = "一轮推单距离")
    private Double onePushDistance;
 
    @ApiModelProperty(value = "一轮推单时间")
    private Integer onePushTime;
 
    @ApiModelProperty(value = "二轮推单距离")
    private Double twoPushDistance;
 
    @ApiModelProperty(value = "二轮推单时间")
    private Integer twoPushTime;
 
    @ApiModelProperty(value = "三轮推单距离")
    private Double threePushDistance;
 
    @ApiModelProperty(value = "三轮推单时间")
    private Integer threePushTime;
 
    @ApiModelProperty(value = "四轮推单距离")
    private Double fourPushDistance;
 
    @ApiModelProperty(value = "四轮推单时间")
    private Integer fourPushTime;
 
    @ApiModelProperty(value = "五轮推单距离")
    private Double fivePushDistance;
 
    @ApiModelProperty(value = "五轮推单时间")
    private Integer fivePushTime;
 
    @ApiModelProperty(value = "规则类型 1=单手举手 2=多手举手")
    private Integer ruleType;
 
    @ApiModelProperty(value = "同时抢单人数")
    private Integer simultaneouslyOrderCount;
 
    @ApiModelProperty(value = "倾向订单价值")
    private Integer tendencyOrderValue;
 
    @ApiModelProperty(value = "倾向距离")
    private Integer tendencyDistance;
 
    @ApiModelProperty(value = "倾向时间")
    private Integer tendencyTime;
 
    @ApiModelProperty(value = "倾向电量")
    private Integer tendencyElectricity;
 
    @ApiModelProperty(value = "时间差权重")
    private Integer weightTimeDifference;
 
    @ApiModelProperty(value = "距离差权重")
    private Integer weightDistanceDifference;
 
    @ApiModelProperty(value = "距离权重")
    private Integer weightDistance;
 
    @ApiModelProperty(value = "时间权重")
    private Integer weightTime;
 
    @ApiModelProperty(value = "电量权重")
    private Integer weightElectricity;
 
}