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;

/**
 * <p>
 * 枚举项字典表
 * </p>
 *
 * @author XKF
 * @since 2024-04-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ENUMDICITEM")
@ApiModel(value="Enumdicitem对象", description="枚举项字典表")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Enumdicitem extends Model<Enumdicitem> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    @TableId(value = "AUTOID")
    private Long autoid;

    @ApiModelProperty(value = "所属枚举ID")
    @TableField("ENUMDICID")
    private Long enumdicid;

    @ApiModelProperty(value = "所属枚举代码")
    @TableField("ENUMDICCODE")
    private String enumdiccode;

    @ApiModelProperty(value = "枚举项名称")
    @TableField("ENUMDICNAME")
    private String enumdicname;

    @ApiModelProperty(value = "枚举项值")
    @TableField("ENUMITEMNAME")
    private Integer enumitemname;

    @ApiModelProperty(value = "枚举项状态 - 1.启用 2.不启用")
    @TableField("ENUMITEMSTATUS")
    private Integer enumitemstatus;

    @ApiModelProperty(value = "银行服务对应值")
    @TableField("BANKMAPPEDVALUE")
    private String bankmappedvalue;

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

    @ApiModelProperty(value = "通用值 - [币种通用简写]")
    @TableField("ENUMITEMVALUE")
    private String enumitemvalue;

    @ApiModelProperty(value = "参数1[币种:币种小数位]")
    @TableField("PARAM1")
    private String param1;

    @ApiModelProperty(value = "参数1[币种:币种显示单位]")
    @TableField("PARAM2")
    private String param2;

    @TableField(select = false)
    private String enumdicnameen;
    @TableField(select = false)
    private String enumdicnamezhtw;
    @TableField(select = false)
    private String enumdicnameth;
    @TableField(select = false)
    private String enumdicnamevi;

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

}
