diff --git a/ruoyi-generator/src/main/java/com/ruoyi/generator/domain/ColumnInfo.java b/ruoyi-generator/src/main/java/com/ruoyi/generator/domain/ColumnInfo.java index 7afab267..c4032a53 100644 --- a/ruoyi-generator/src/main/java/com/ruoyi/generator/domain/ColumnInfo.java +++ b/ruoyi-generator/src/main/java/com/ruoyi/generator/domain/ColumnInfo.java @@ -18,7 +18,7 @@ public class ColumnInfo /** 列描述 */ private String columnComment; - + /** 列配置 */ private ColumnConfigInfo configInfo; @@ -31,6 +31,9 @@ public class ColumnInfo /** Java属性名称(第一个字母小写),如:user_name => userName */ private String attrname; + /** 执行计划(包含了与索引相关的一些细节信息) */ + private String extra; + public String getColumnName() { return columnName; @@ -99,7 +102,17 @@ public class ColumnInfo { this.attrType = attrType; } - + + public String getExtra() + { + return extra; + } + + public void setExtra(String extra) + { + this.extra = extra; + } + public ColumnConfigInfo getConfigInfo() { return configInfo; diff --git a/ruoyi-generator/src/main/java/com/ruoyi/generator/util/GenUtils.java b/ruoyi-generator/src/main/java/com/ruoyi/generator/util/GenUtils.java index a6747836..e67f1784 100644 --- a/ruoyi-generator/src/main/java/com/ruoyi/generator/util/GenUtils.java +++ b/ruoyi-generator/src/main/java/com/ruoyi/generator/util/GenUtils.java @@ -44,6 +44,7 @@ public class GenUtils String attrName = StringUtils.convertToCamelCase(column.getColumnName()); column.setAttrName(attrName); column.setAttrname(StringUtils.uncapitalize(attrName)); + column.setExtra(column.getExtra()); // 列的数据类型,转换成Java类型 String attrType = javaTypeMap.get(column.getDataType()); diff --git a/ruoyi-generator/src/main/resources/mapper/generator/GenMapper.xml b/ruoyi-generator/src/main/resources/mapper/generator/GenMapper.xml index 4653bee2..45bf4bd8 100644 --- a/ruoyi-generator/src/main/resources/mapper/generator/GenMapper.xml +++ b/ruoyi-generator/src/main/resources/mapper/generator/GenMapper.xml @@ -45,7 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"