package com.dk.mdm.model.vo.core;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dk.common.infrastructure.annotaiton.ExportTitle;
import com.dk.common.infrastructure.annotaiton.LogMain;
import com.dk.common.model.pojo.PageInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 *  系统参数
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ExportTitle("系统参数")
@TableName(value = "t_setting_value", autoResultMap = true)
@ApiModel(value="实体类：系统参数", description="表名：t_setting_value")
@LogMain
public class SettingValueVO extends PageInfo<SettingValueVO> implements Serializable {

    /*
     * 数据库字段
     */

    /**
     * 工厂ID
     */
    @TableId(value = "fty_id", type = IdType.AUTO)
    @ApiModelProperty(value = "工厂ID")
    private Integer ftyId;


    /**
     * 参数代码
     */
    @Excel(name = "参数代码")
    @ApiModelProperty(value = "参数代码")
    private String settingCode;


    /**
     * 参数值
     */
    @Excel(name = "参数值")
    @ApiModelProperty(value = "参数值")
    private String settingValue;


    /**
     * 备注
     */
    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remarks;


    /**
     * 有效标识 (1：正常 0：停用)
     */
    @Excel(name = "有效标识 (1：正常 0：停用)")
    @ApiModelProperty(value = "有效标识 (1：正常 0：停用)")
    private Boolean flgValid;




    /*
     * 相关属性
     * @TableField(exist = false)
     */

    /*
     * 关联属性 + 查询条件
     * @TableField(exist = false)
     */


    private static final long serialVersionUID = 1L;

}
