提交 1ef73d73 authored 作者: RuoYi's avatar RuoYi

修复代码生成主子表校验必填失效问题

上级 bd233fd6
...@@ -128,9 +128,9 @@ public class GenTableServiceImpl implements IGenTableService ...@@ -128,9 +128,9 @@ public class GenTableServiceImpl implements IGenTableService
int row = genTableMapper.updateGenTable(genTable); int row = genTableMapper.updateGenTable(genTable);
if (row > 0) if (row > 0)
{ {
for (GenTableColumn cenTableColumn : genTable.getColumns()) for (GenTableColumn genTableColumn : genTable.getColumns())
{ {
genTableColumnMapper.updateGenTableColumn(cenTableColumn); genTableColumnMapper.updateGenTableColumn(genTableColumn);
} }
} }
} }
...@@ -424,6 +424,7 @@ public class GenTableServiceImpl implements IGenTableService ...@@ -424,6 +424,7 @@ public class GenTableServiceImpl implements IGenTableService
{ {
throw new ServiceException("树名称字段不能为空"); throw new ServiceException("树名称字段不能为空");
} }
}
else if (GenConstants.TPL_SUB.equals(genTable.getTplCategory())) else if (GenConstants.TPL_SUB.equals(genTable.getTplCategory()))
{ {
if (StringUtils.isEmpty(genTable.getSubTableName())) if (StringUtils.isEmpty(genTable.getSubTableName()))
...@@ -436,7 +437,6 @@ public class GenTableServiceImpl implements IGenTableService ...@@ -436,7 +437,6 @@ public class GenTableServiceImpl implements IGenTableService
} }
} }
} }
}
/** /**
* 设置主键列信息 * 设置主键列信息
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论