🐛 Fixing a bug. closed #I44950 代码生成问题,页面显示为数据库字段名而不是备注

This commit is contained in:
lht 2021-08-07 14:20:41 +08:00
parent b18fd4f3d0
commit d3839397fa
1 changed files with 2 additions and 2 deletions

View File

@ -169,9 +169,9 @@ public class CodeGenKits {
columnEntity.setLowerAttrName(StringUtils.uncapitalize(attrName)); 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 { else {
columnEntity.setComments(columnEntity.getLowerAttrName()); columnEntity.setComments(columnEntity.getLowerAttrName());