package com.highdatas.mdm.entity;
|
|
import com.baomidou.mybatisplus.activerecord.Model;
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import com.baomidou.mybatisplus.enums.FieldStrategy;
|
import com.highdatas.mdm.pojo.Operate;
|
import org.apache.commons.lang3.StringUtils;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* <p>
|
*
|
* </p>
|
*
|
* @author kimi
|
* @since 2019-12-18
|
*/
|
@TableName("sys_field")
|
public class SysField extends Model<SysField> {
|
|
private static final long serialVersionUID = 1L;
|
/*
|
*主键
|
* */
|
private String id;
|
/*
|
*编码
|
* */
|
private String code;
|
|
/**
|
* 表名
|
*/
|
@TableField("table_name")
|
private String tableName;
|
|
/**
|
* 字段名
|
*/
|
private String field;
|
|
/**
|
* 前台展示名称
|
*/
|
private String alias;
|
|
/**
|
* 格式化规则
|
*/
|
private String format;
|
|
/**
|
* 宽度
|
*/
|
private Integer width;
|
|
/**
|
* 是否可见
|
*/
|
private Boolean visible;
|
|
private Boolean editble;
|
private transient Boolean refused;
|
private transient String menuName;
|
private transient String menuId;
|
|
private transient Object number;
|
private transient AntianaphylaxisType desensitizationType;
|
private transient Object initialPosition;
|
private transient BlurryType initialDirection;
|
|
|
|
|
public AntianaphylaxisType getDesensitizationType() {
|
return desensitizationType;
|
}
|
|
public void setDesensitizationType(AntianaphylaxisType desensitizationType) {
|
this.desensitizationType = desensitizationType;
|
}
|
|
public Object getNumber() {
|
return number;
|
}
|
|
public void setNumber(Object number) {
|
this.number = number;
|
}
|
|
public Object getInitialPosition() {
|
return initialPosition;
|
}
|
|
public void setInitialPosition(Object initialPosition) {
|
this.initialPosition = initialPosition;
|
}
|
|
public BlurryType getInitialDirection() {
|
return initialDirection;
|
}
|
|
public void setInitialDirection(BlurryType initialDirection) {
|
this.initialDirection = initialDirection;
|
}
|
|
public String getMenuName() {
|
return menuName;
|
}
|
|
public SysField setMenuName(String menuName) {
|
this.menuName = menuName;
|
return this;
|
}
|
|
public String getMenuId() {
|
return menuId;
|
}
|
|
public SysField setMenuId(String menuId) {
|
this.menuId = menuId;
|
return this;
|
}
|
|
@TableField(strategy = FieldStrategy.IGNORED)
|
private Operate operate;
|
|
/**
|
* 对齐方式
|
*/
|
private String align;
|
|
@TableField("maintain_field_id")
|
private String maintainFieldId;
|
|
@TableField("order_no")
|
private Integer orderNo;
|
|
@TableField("field_type")
|
private String fieldType;
|
|
private String desp;
|
|
@TableField("create_time")
|
private Date createTime;
|
|
@TableField("update_time")
|
private Date updateTime;
|
|
public Boolean getRefused() {
|
return refused;
|
}
|
|
public SysField setRefused(Boolean refused) {
|
this.refused = refused;
|
return this;
|
|
}
|
|
public Operate getOperate() {
|
return operate;
|
}
|
|
public SysField setOperate(Operate operate) {
|
this.operate = operate;
|
return this;
|
}
|
|
public String getMaintainFieldId() {
|
return maintainFieldId;
|
}
|
|
public SysField setMaintainFieldId(String maintainFieldId) {
|
this.maintainFieldId = maintainFieldId;
|
return this;
|
}
|
|
public String getId() {
|
return id;
|
}
|
|
public SysField setId(String id) {
|
this.id = id;
|
return this;
|
}
|
public String getCode() {
|
return code;
|
}
|
|
public SysField setCode(String code) {
|
this.code = code;
|
return this;
|
}
|
public String getTableName() {
|
return tableName;
|
}
|
|
public SysField setTableName(String tableName) {
|
this.tableName = tableName;
|
return this;
|
}
|
public String getField() {
|
return field;
|
}
|
|
public SysField setField(String field) {
|
this.field = field;
|
return this;
|
}
|
public String getAlias() {
|
return alias;
|
}
|
|
public SysField setAlias(String alias) {
|
this.alias = alias;
|
return this;
|
}
|
public String getFormat() {
|
return format;
|
}
|
|
public SysField setFormat(String format) {
|
this.format = format;
|
return this;
|
}
|
public Integer getWidth() {
|
return width;
|
}
|
|
public SysField setWidth(Integer width) {
|
this.width = width;
|
return this;
|
}
|
public Boolean getVisible() {
|
return visible;
|
}
|
|
public SysField setVisible(Boolean visible) {
|
this.visible = visible;
|
return this;
|
}
|
public Boolean getEditble() {
|
return editble;
|
}
|
|
public SysField setEditble(Boolean editble) {
|
this.editble = editble;
|
return this;
|
}
|
public String getAlign() {
|
return align;
|
}
|
|
public SysField setAlign(String align) {
|
this.align = align;
|
return this;
|
}
|
public Integer getOrderNo() {
|
return orderNo;
|
}
|
|
public SysField setOrderNo(Integer orderNo) {
|
this.orderNo = orderNo;
|
return this;
|
}
|
public String getFieldType() {
|
return fieldType;
|
}
|
|
public SysField setFieldType(String fieldType) {
|
this.fieldType = fieldType;
|
return this;
|
}
|
public String getDesp() {
|
return desp;
|
}
|
|
public SysField setDesp(String desp) {
|
this.desp = desp;
|
return this;
|
}
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public SysField setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
return this;
|
}
|
public Date getUpdateTime() {
|
return updateTime;
|
}
|
|
public SysField setUpdateTime(Date updateTime) {
|
this.updateTime = updateTime;
|
return this;
|
}
|
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
|
@Override
|
public int hashCode() {
|
int hash = 0;
|
if (!StringUtils.isEmpty(tableName)) {
|
hash += tableName.hashCode();
|
}
|
if (!StringUtils.isEmpty(alias)) {
|
hash += alias.hashCode();
|
}
|
if (visible != null) {
|
hash += visible.hashCode();
|
}
|
if (orderNo != null) {
|
hash += orderNo.hashCode();
|
}
|
if (!StringUtils.isEmpty(code)) {
|
hash += code.hashCode();
|
}if (!StringUtils.isEmpty(align)) {
|
hash += align.hashCode();
|
}if (!StringUtils.isEmpty(format)) {
|
hash += format.hashCode();
|
}
|
return hash;
|
}
|
|
@Override
|
public boolean equals(Object obj) {
|
return super.equals(obj);
|
// if (obj instanceof SysField) {
|
// SysField compare = (SysField) obj;
|
// return compare.getTableName().equalsIgnoreCase(tableName)
|
// &&
|
// compare.getAlias().equalsIgnoreCase(alias)
|
// &&
|
// compare.getVisible().equals(visible)
|
// &&
|
// compare.getOrderNo().equals(orderNo)
|
// &&
|
// compare.getCode().equalsIgnoreCase(code)
|
// &&
|
// compare.getAlign().equalsIgnoreCase(align)
|
// &&
|
// compare.getFormat().equalsIgnoreCase(format);
|
// } else {
|
//
|
// }
|
|
}
|
|
@Override
|
public String toString() {
|
return "SysField{" +
|
"id=" + id +
|
", code=" + code +
|
", tableName=" + tableName +
|
", field=" + field +
|
", alias=" + alias +
|
", format=" + format +
|
", width=" + width +
|
", visible=" + visible +
|
", editble=" + editble +
|
", align=" + align +
|
", orderNo=" + orderNo +
|
", fieldType=" + fieldType +
|
", desp=" + desp +
|
", operate=" + operate +
|
", createTime=" + createTime +
|
", updateTime=" + updateTime +
|
"}";
|
}
|
}
|