|
|
|
|
@ -1,20 +1,34 @@
|
|
|
|
|
package com.ruoyi.generator.domain;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.*;
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
|
|
|
import com.ruoyi.common.core.domain.BaseEntity;
|
|
|
|
|
import lombok.Data;
|
|
|
|
|
import lombok.NoArgsConstructor;
|
|
|
|
|
import lombok.experimental.Accessors;
|
|
|
|
|
|
|
|
|
|
import javax.validation.constraints.NotBlank;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 代码生成业务字段表 gen_table_column
|
|
|
|
|
*
|
|
|
|
|
* @author ruoyi
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
@Data
|
|
|
|
|
@NoArgsConstructor
|
|
|
|
|
@Accessors(chain = true)
|
|
|
|
|
@TableName("gen_table_column")
|
|
|
|
|
public class GenTableColumn extends BaseEntity
|
|
|
|
|
{
|
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
|
|
|
|
|
|
/** 编号 */
|
|
|
|
|
@TableId(value = "column_id", type = IdType.AUTO)
|
|
|
|
|
private Long columnId;
|
|
|
|
|
|
|
|
|
|
/** 归属表编号 */
|
|
|
|
|
@ -69,91 +83,41 @@ public class GenTableColumn extends BaseEntity
|
|
|
|
|
/** 排序 */
|
|
|
|
|
private Integer sort;
|
|
|
|
|
|
|
|
|
|
public void setColumnId(Long columnId)
|
|
|
|
|
{
|
|
|
|
|
this.columnId = columnId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getColumnId()
|
|
|
|
|
{
|
|
|
|
|
return columnId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setTableId(Long tableId)
|
|
|
|
|
{
|
|
|
|
|
this.tableId = tableId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Long getTableId()
|
|
|
|
|
{
|
|
|
|
|
return tableId;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setColumnName(String columnName)
|
|
|
|
|
{
|
|
|
|
|
this.columnName = columnName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getColumnName()
|
|
|
|
|
{
|
|
|
|
|
return columnName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setColumnComment(String columnComment)
|
|
|
|
|
{
|
|
|
|
|
this.columnComment = columnComment;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getColumnComment()
|
|
|
|
|
{
|
|
|
|
|
return columnComment;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setColumnType(String columnType)
|
|
|
|
|
{
|
|
|
|
|
this.columnType = columnType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getColumnType()
|
|
|
|
|
{
|
|
|
|
|
return columnType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setJavaType(String javaType)
|
|
|
|
|
{
|
|
|
|
|
this.javaType = javaType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getJavaType()
|
|
|
|
|
{
|
|
|
|
|
return javaType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setJavaField(String javaField)
|
|
|
|
|
{
|
|
|
|
|
this.javaField = javaField;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getJavaField()
|
|
|
|
|
{
|
|
|
|
|
return javaField;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 创建者
|
|
|
|
|
*/
|
|
|
|
|
private String createBy;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 创建时间
|
|
|
|
|
*/
|
|
|
|
|
@TableField(fill = FieldFill.INSERT)
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
private Date createTime;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 更新者
|
|
|
|
|
*/
|
|
|
|
|
private String updateBy;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 更新时间
|
|
|
|
|
*/
|
|
|
|
|
@TableField(fill = FieldFill.INSERT_UPDATE)
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
private Date updateTime;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 请求参数
|
|
|
|
|
*/
|
|
|
|
|
@TableField(exist = false)
|
|
|
|
|
private Map<String, Object> params = new HashMap<>();
|
|
|
|
|
|
|
|
|
|
public String getCapJavaField()
|
|
|
|
|
{
|
|
|
|
|
return StrUtil.upperFirst(javaField);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setIsPk(String isPk)
|
|
|
|
|
{
|
|
|
|
|
this.isPk = isPk;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getIsPk()
|
|
|
|
|
{
|
|
|
|
|
return isPk;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean isPk()
|
|
|
|
|
{
|
|
|
|
|
return isPk(this.isPk);
|
|
|
|
|
@ -164,16 +128,6 @@ public class GenTableColumn extends BaseEntity
|
|
|
|
|
return isPk != null && StrUtil.equals("1", isPk);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getIsIncrement()
|
|
|
|
|
{
|
|
|
|
|
return isIncrement;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setIsIncrement(String isIncrement)
|
|
|
|
|
{
|
|
|
|
|
this.isIncrement = isIncrement;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean isIncrement()
|
|
|
|
|
{
|
|
|
|
|
return isIncrement(this.isIncrement);
|
|
|
|
|
@ -184,16 +138,6 @@ public class GenTableColumn extends BaseEntity
|
|
|
|
|
return isIncrement != null && StrUtil.equals("1", isIncrement);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setIsRequired(String isRequired)
|
|
|
|
|
{
|
|
|
|
|
this.isRequired = isRequired;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getIsRequired()
|
|
|
|
|
{
|
|
|
|
|
return isRequired;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean isRequired()
|
|
|
|
|
{
|
|
|
|
|
return isRequired(this.isRequired);
|
|
|
|
|
@ -204,16 +148,6 @@ public class GenTableColumn extends BaseEntity
|
|
|
|
|
return isRequired != null && StrUtil.equals("1", isRequired);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setIsInsert(String isInsert)
|
|
|
|
|
{
|
|
|
|
|
this.isInsert = isInsert;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getIsInsert()
|
|
|
|
|
{
|
|
|
|
|
return isInsert;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean isInsert()
|
|
|
|
|
{
|
|
|
|
|
return isInsert(this.isInsert);
|
|
|
|
|
@ -224,16 +158,6 @@ public class GenTableColumn extends BaseEntity
|
|
|
|
|
return isInsert != null && StrUtil.equals("1", isInsert);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setIsEdit(String isEdit)
|
|
|
|
|
{
|
|
|
|
|
this.isEdit = isEdit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getIsEdit()
|
|
|
|
|
{
|
|
|
|
|
return isEdit;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean isEdit()
|
|
|
|
|
{
|
|
|
|
|
return isInsert(this.isEdit);
|
|
|
|
|
@ -244,16 +168,6 @@ public class GenTableColumn extends BaseEntity
|
|
|
|
|
return isEdit != null && StrUtil.equals("1", isEdit);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setIsList(String isList)
|
|
|
|
|
{
|
|
|
|
|
this.isList = isList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getIsList()
|
|
|
|
|
{
|
|
|
|
|
return isList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean isList()
|
|
|
|
|
{
|
|
|
|
|
return isList(this.isList);
|
|
|
|
|
@ -264,16 +178,6 @@ public class GenTableColumn extends BaseEntity
|
|
|
|
|
return isList != null && StrUtil.equals("1", isList);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setIsQuery(String isQuery)
|
|
|
|
|
{
|
|
|
|
|
this.isQuery = isQuery;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getIsQuery()
|
|
|
|
|
{
|
|
|
|
|
return isQuery;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean isQuery()
|
|
|
|
|
{
|
|
|
|
|
return isQuery(this.isQuery);
|
|
|
|
|
@ -284,46 +188,6 @@ public class GenTableColumn extends BaseEntity
|
|
|
|
|
return isQuery != null && StrUtil.equals("1", isQuery);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setQueryType(String queryType)
|
|
|
|
|
{
|
|
|
|
|
this.queryType = queryType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getQueryType()
|
|
|
|
|
{
|
|
|
|
|
return queryType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getHtmlType()
|
|
|
|
|
{
|
|
|
|
|
return htmlType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setHtmlType(String htmlType)
|
|
|
|
|
{
|
|
|
|
|
this.htmlType = htmlType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setDictType(String dictType)
|
|
|
|
|
{
|
|
|
|
|
this.dictType = dictType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDictType()
|
|
|
|
|
{
|
|
|
|
|
return dictType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setSort(Integer sort)
|
|
|
|
|
{
|
|
|
|
|
this.sort = sort;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getSort()
|
|
|
|
|
{
|
|
|
|
|
return sort;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public boolean isSuperColumn()
|
|
|
|
|
{
|
|
|
|
|
return isSuperColumn(this.javaField);
|
|
|
|
|
|