From b718a410ebd5e0ecf8cb54b5809625c1e65a40c9 Mon Sep 17 00:00:00 2001 From: cida Date: Tue, 16 Apr 2024 17:30:33 +0800 Subject: [PATCH] =?UTF-8?q?optimize:=20=E5=B0=86=20buildAnnotations=20?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E4=B8=AD=EF=BC=8C=E6=8B=BC=E6=8E=A5=E6=B3=A8?= =?UTF-8?q?=E8=A7=A3=E6=97=B6=E7=9A=84=E5=89=8D=E5=AF=BC=E5=88=B6=E8=A1=A8?= =?UTF-8?q?=E7=AC=A6=E6=9B=BF=E6=8D=A2=E4=B8=BA=E5=9B=9B=E4=B8=AA=E7=A9=BA?= =?UTF-8?q?=E6=A0=BC=EF=BC=8C=E4=B8=8E=E6=A8=A1=E6=9D=BF=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/mybatisflex/codegen/entity/Column.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mybatis-flex-codegen/src/main/java/com/mybatisflex/codegen/entity/Column.java b/mybatis-flex-codegen/src/main/java/com/mybatisflex/codegen/entity/Column.java index 75e807a4..fec54641 100644 --- a/mybatis-flex-codegen/src/main/java/com/mybatisflex/codegen/entity/Column.java +++ b/mybatis-flex-codegen/src/main/java/com/mybatisflex/codegen/entity/Column.java @@ -276,7 +276,7 @@ public class Column { } if (entityConfig != null && entityConfig.isAlwaysGenColumnAnnotation()) { - annotations.append("\n\t"); + annotations.append("\n "); } } @@ -370,7 +370,7 @@ public class Column { String maskType = columnConfig.getMaskType(); if (maskType != null) { if (annotations.length() != 0) { - annotations.append("\n\t"); + annotations.append("\n "); } annotations.append("@ColumnMask("); if (MaskManager.getProcessorMap().containsKey(maskType)) {