| | |
| | | /** |
| | | * 列描述 |
| | | */ |
| | | @TableField(updateStrategy = FieldStrategy.IGNORED) |
| | | private String columnComment; |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 是否主键(1是) |
| | | */ |
| | | @TableField(updateStrategy = FieldStrategy.IGNORED) |
| | | private String isPk; |
| | | |
| | | /** |
| | | * 是否自增(1是) |
| | | */ |
| | | @TableField(updateStrategy = FieldStrategy.IGNORED) |
| | | private String isIncrement; |
| | | |
| | | /** |
| | | * 是否必填(1是) |
| | | */ |
| | | @TableField(updateStrategy = FieldStrategy.IGNORED) |
| | | private String isRequired; |
| | | |
| | | /** |
| | | * 是否为插入字段(1是) |
| | | */ |
| | | @TableField(updateStrategy = FieldStrategy.IGNORED) |
| | | private String isInsert; |
| | | |
| | | /** |
| | | * 是否编辑字段(1是) |
| | | */ |
| | | @TableField(updateStrategy = FieldStrategy.IGNORED) |
| | | private String isEdit; |
| | | |
| | | /** |
| | | * 是否列表字段(1是) |
| | | */ |
| | | @TableField(updateStrategy = FieldStrategy.IGNORED) |
| | | private String isList; |
| | | |
| | | /** |
| | | * 是否查询字段(1是) |
| | | */ |
| | | @TableField(updateStrategy = FieldStrategy.IGNORED) |
| | | private String isQuery; |
| | | |
| | | /** |
| | |
| | | private Map<String, Object> params = new HashMap<>(); |
| | | |
| | | public String getCapJavaField() { |
| | | return StringUtils.upperFirst(javaField); |
| | | return StringUtils.uncapitalize(javaField); |
| | | } |
| | | |
| | | public boolean isPk() { |
| | |
| | | } |
| | | |
| | | public String readConverterExp() { |
| | | String remarks = StringUtils.subBetween(this.columnComment, "(", ")"); |
| | | String remarks = StringUtils.substringBetween(this.columnComment, "(", ")"); |
| | | StringBuffer sb = new StringBuffer(); |
| | | if (StringUtils.isNotEmpty(remarks)) { |
| | | for (String value : remarks.split(" ")) { |