mirror of https://gitee.com/maxjhandsome/pig
🐛 Fixing a bug. closed #I44950 代码生成问题,页面显示为数据库字段名而不是备注
This commit is contained in:
parent
b18fd4f3d0
commit
d3839397fa
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue