From d3839397fa1298a049a2d89709bb95a708122539 Mon Sep 17 00:00:00 2001 From: lht Date: Sat, 7 Aug 2021 14:20:41 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20Fixing=20a=20bug.=20closed=20#I44950=20?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E9=97=AE=E9=A2=98,?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=98=BE=E7=A4=BA=E4=B8=BA=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E5=AD=97=E6=AE=B5=E5=90=8D=E8=80=8C=E4=B8=8D=E6=98=AF?= =?UTF-8?q?=E5=A4=87=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/pig4cloud/pig/codegen/support/CodeGenKits.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/support/CodeGenKits.java b/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/support/CodeGenKits.java index 4720bab1..2ce74c60 100644 --- a/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/support/CodeGenKits.java +++ b/pig-visual/pig-codegen/src/main/java/com/pig4cloud/pig/codegen/support/CodeGenKits.java @@ -169,9 +169,9 @@ public class CodeGenKits { columnEntity.setLowerAttrName(StringUtils.uncapitalize(attrName)); // 判断注释是否为空 - if (StrUtil.isNotBlank(column.get("comments"))) { + if (StrUtil.isNotBlank(column.get("columnComment"))) { // 注意去除换行符号 - columnEntity.setComments(StrUtil.removeAllLineBreaks(column.get("comments"))); + columnEntity.setComments(StrUtil.removeAllLineBreaks(column.get("columnComment"))); } else { columnEntity.setComments(columnEntity.getLowerAttrName());