From 215a3767ae088ad026f0851eb88c6ee6df41b8f4 Mon Sep 17 00:00:00 2001 From: gaibu <1016771049@qq.com> Date: Wed, 11 Jan 2023 18:36:01 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E8=BD=AC=E6=8D=A2=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../infra/convert/codegen/CodegenConvert.java | 10 +++++----- .../dal/dataobject/codegen/CodegenColumnDO.java | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/convert/codegen/CodegenConvert.java b/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/convert/codegen/CodegenConvert.java index 6c78ac7cd..1d286c52f 100644 --- a/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/convert/codegen/CodegenConvert.java +++ b/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/convert/codegen/CodegenConvert.java @@ -11,7 +11,7 @@ import cn.iocoder.yudao.module.infra.dal.dataobject.codegen.CodegenColumnDO; import cn.iocoder.yudao.module.infra.dal.dataobject.codegen.CodegenTableDO; import com.baomidou.mybatisplus.generator.config.po.TableField; import com.baomidou.mybatisplus.generator.config.po.TableInfo; -import com.baomidou.mybatisplus.generator.config.rules.IColumnType; +import org.apache.ibatis.type.JdbcType; import org.mapstruct.Mapper; import org.mapstruct.Mapping; import org.mapstruct.Mappings; @@ -39,7 +39,7 @@ public interface CodegenConvert { @Mappings({ @Mapping(source = "name", target = "columnName"), - @Mapping(source = "columnType", target = "dataType", qualifiedByName = "getType"), + @Mapping(source = "metaInfo.jdbcType", target = "dataType", qualifiedByName = "getDataType"), @Mapping(source = "comment", target = "columnComment"), @Mapping(source = "metaInfo.nullable", target = "nullable"), @Mapping(source = "keyFlag", target = "primaryKey"), @@ -49,9 +49,9 @@ public interface CodegenConvert { }) CodegenColumnDO convert(TableField bean); - @Named("getType") - default String getType(IColumnType jdbcType) { - return jdbcType.getType(); + @Named("getDataType") + default String getDataType(JdbcType jdbcType) { + return jdbcType.name(); } // ========== CodegenTableDO 相关 ========== diff --git a/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/dal/dataobject/codegen/CodegenColumnDO.java b/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/dal/dataobject/codegen/CodegenColumnDO.java index 470b9969c..f1990f3fc 100644 --- a/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/dal/dataobject/codegen/CodegenColumnDO.java +++ b/yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/dal/dataobject/codegen/CodegenColumnDO.java @@ -30,7 +30,7 @@ public class CodegenColumnDO extends BaseDO { private Long id; /** * 表编号 - * + *
* 关联 {@link CodegenTableDO#getId()} */ private Long tableId; @@ -42,8 +42,8 @@ public class CodegenColumnDO extends BaseDO { */ private String columnName; /** - * 字段类型 - * 关联 {@link TableField#getColumnType()}} + * 数据库字段类型 + * 关联 {@link TableField.MetaInfo#getJdbcType()} */ private String dataType; /** @@ -71,7 +71,7 @@ public class CodegenColumnDO extends BaseDO { /** * Java 属性类型 - * + *
* 例如说 String、Boolean 等等 */ private String javaType; @@ -81,7 +81,7 @@ public class CodegenColumnDO extends BaseDO { private String javaField; /** * 字典类型 - * + *
* 关联 DictTypeDO 的 type 属性 */ private String dictType; @@ -106,7 +106,7 @@ public class CodegenColumnDO extends BaseDO { private Boolean listOperation; /** * List 查询操作的条件类型 - * + *
* 枚举 {@link CodegenColumnListConditionEnum} */ private String listOperationCondition; @@ -119,7 +119,7 @@ public class CodegenColumnDO extends BaseDO { /** * 显示类型 - * + *
* 枚举 {@link CodegenColumnHtmlTypeEnum}
*/
private String htmlType;
From 990fb58be9d4a85211fe811904ad3167de0f838b Mon Sep 17 00:00:00 2001
From: gaibu <1016771049@qq.com>
Date: Thu, 12 Jan 2023 21:01:49 +0800
Subject: [PATCH 2/3] =?UTF-8?q?fix:=20spring-boot-configuration-processor?=
=?UTF-8?q?=20=E8=87=AA=E5=8A=A8=E7=94=9F=E6=88=90=20spring-configuration-?=
=?UTF-8?q?metadata.json?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index bfe536ed2..fd698ff7c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -35,9 +35,10 @@