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;
|
|
@Override
|
public Serializable pkVal() {
|
return this.id;
|
}
|
}
|