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; /** *

* 客户规则表 *

* * @author * @since 2023-08-15 */ @Data @Accessors(chain = true) @TableName("t_client_config") @Schema(name = "ClientConfig", description = "客户规则表") public class ClientConfig extends Model { 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; } }