peng
2026-03-24 ca41db25ab3da9ddd509b79fd783b60d2e66056f
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
package com.tievd.jyz.entity;
 
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;
 
import java.io.Serializable;
 
/**
 * <p>
 * 客户规则表
 * </p>
 *
 * @author
 * @since 2023-08-15
 */
@Data
@Accessors(chain = true)
@TableName("t_client_config")
@Schema(name = "ClientConfig", description = "客户规则表")
public class ClientConfig extends Model<ClientConfig> {
 
    private static final long serialVersionUID = 1L;
 
    @TableId("id")
    private Integer id;
    
    @Schema(description = "客户类型/名称")
    @TableField("client_id")
    private Integer clientId;
 
    @Schema(description = "客户名称")
    @TableField("client_name")
    private String clientName;
 
    @Schema(description = "时间数值")
    @TableField("time_value")
    private Integer timeValue;
 
    @Schema(description = "时间单位DAYS,MONTHS,YEARS")
    @TableField("time_unit")
    private String timeUnit;
    
    @Schema(description = "")
    @TableField(exist = false)
    private String timeStr;
 
    @Schema(description = "次数类型 1累计  2每月")
    @TableField("count_type")
    private Byte countType;
 
    @Schema(description = "关系 -1 <  0 =  1>")
    @TableField("count_ref")
    private Byte countRef;
 
    @Schema(description = "次数值")
    @TableField("count_num")
    private Integer countNum;
 
    @Schema(description = "加油趋势: 0-无 1-稳定 2-减少")
    @TableField("count_trend")
    private Byte countTrend;
 
    @Schema(description = "规则类型: 1-加油频次 2-加油趋势")
    @TableField("rule_type")
    private Byte ruleType;
 
    @Schema(description = "历史月数")
    @TableField("history_months")
    private Integer historyMonths;
 
    @Schema(description = "近期月数")
    @TableField("recent_months")
    private Integer recentMonths;
 
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}