package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.IdType;
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.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 系统参数表
 * </p>
 *
 * @author XKF
 * @since 2024-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SYSTEMPARAM")
@ApiModel(value="Systemparam对象", description="系统参数表")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Systemparam extends Model<Systemparam> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "参数代码")
    @TableId(value = "PARAMCODE" )
    private String paramcode;

    @ApiModelProperty(value = "参数名")
    @TableField("PARAMNAME")
    private String paramname;

    @ApiModelProperty(value = "参数值")
    @TableField("PARAMVALUE")
    private String paramvalue;

    @ApiModelProperty(value = "参数类型  0-通用 1-管理端 2-终端  3-后台 4-商城 ")
    @TableField("PARAMTYPE")
    private Integer paramtype;

    @ApiModelProperty(value = "是否显示0 不显示   1 显示")
    @TableField("SHOWFLAG")
    private Integer showflag;

    @ApiModelProperty(value = "修改标志0 不允许修改   1 允许修改")
    @TableField("MODIFYFLAG")
    private Integer modifyflag;

    @ApiModelProperty(value = "限制服务器IP,备份参数，现在界面不用显示 0.0.0.0则无限制，是通用参数 192.168.0.211 指定服务器的参数配置 ")
    @TableField("SERVERIP")
    private String serverip;

    @ApiModelProperty(value = "更新用户ID")
    @TableField("USERID")
    private Long userid;

    @ApiModelProperty(value = "更新用户账号,登录账号")
    @TableField("LOGINID")
    private String loginid;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATETIME")
    private Date updatetime;

    @ApiModelProperty(value = "备注")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty(value = "参数值(CLOB)")
    @TableField("PARAMVALUE2")
    private String paramvalue2;

    @ApiModelProperty(value = "正则表达式")
    @TableField("REGEXPRESS")
    private String regexpress;


    @Override
    public Serializable pkVal() {
        return this.paramcode;
    }

}
