package com.lyms.talkonlineweb.domain;
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 java.io.Serializable;
import lombok.Data;
/**
* 系统码表
* @TableName lyms_dict
*/
@TableName(value ="lyms_dict")
@Data
public class LymsDict implements Serializable {
/**
*
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 编码
*/
@TableField(value = "code")
private Integer code;
/**
* 取值
*/
@TableField(value = "value")
private String value;
/**
* 所属类型
*/
@TableField(value = "vtype")
private Integer vtype;
/**
* 排序
*/
@TableField(value = "sort")
private Integer sort;
@TableField(exist = false)
private static final long serialVersionUID = 1L;
@Override
public boolean equals(Object that) {
if (this == that) {
return true;
}
if (that == null) {
return false;
}
if (getClass() != that.getClass()) {
return false;
}
LymsDict other = (LymsDict) that;
return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
&& (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
&& (this.getValue() == null ? other.getValue() == null : this.getValue().equals(other.getValue()))
&& (this.getVtype() == null ? other.getVtype() == null : this.getVtype().equals(other.getVtype()))
&& (this.getSort() == null ? other.getSort() == null : this.getSort().equals(other.getSort()));
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
result = prime * result + ((getValue() == null) ? 0 : getValue().hashCode());
result = prime * result + ((getVtype() == null) ? 0 : getVtype().hashCode());
result = prime * result + ((getSort() == null) ? 0 : getSort().hashCode());
return result;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", code=").append(code);
sb.append(", value=").append(value);
sb.append(", vtype=").append(vtype);
sb.append(", sort=").append(sort);
sb.append(", serialVersionUID=").append(serialVersionUID);
sb.append("]");
return sb.toString();
}
}