正在显示
1 个修改的文件
包含
11 行增加
和
11 行删除
| @@ -128,9 +128,9 @@ public class GenTableServiceImpl implements IGenTableService | @@ -128,9 +128,9 @@ public class GenTableServiceImpl implements IGenTableService | ||
| 128 | int row = genTableMapper.updateGenTable(genTable); | 128 | int row = genTableMapper.updateGenTable(genTable); |
| 129 | if (row > 0) | 129 | if (row > 0) |
| 130 | { | 130 | { |
| 131 | - for (GenTableColumn cenTableColumn : genTable.getColumns()) | 131 | + for (GenTableColumn genTableColumn : genTable.getColumns()) |
| 132 | { | 132 | { |
| 133 | - genTableColumnMapper.updateGenTableColumn(cenTableColumn); | 133 | + genTableColumnMapper.updateGenTableColumn(genTableColumn); |
| 134 | } | 134 | } |
| 135 | } | 135 | } |
| 136 | } | 136 | } |
| @@ -424,16 +424,16 @@ public class GenTableServiceImpl implements IGenTableService | @@ -424,16 +424,16 @@ public class GenTableServiceImpl implements IGenTableService | ||
| 424 | { | 424 | { |
| 425 | throw new ServiceException("树名称字段不能为空"); | 425 | throw new ServiceException("树名称字段不能为空"); |
| 426 | } | 426 | } |
| 427 | - else if (GenConstants.TPL_SUB.equals(genTable.getTplCategory())) | 427 | + } |
| 428 | + else if (GenConstants.TPL_SUB.equals(genTable.getTplCategory())) | ||
| 429 | + { | ||
| 430 | + if (StringUtils.isEmpty(genTable.getSubTableName())) | ||
| 428 | { | 431 | { |
| 429 | - if (StringUtils.isEmpty(genTable.getSubTableName())) | ||
| 430 | - { | ||
| 431 | - throw new ServiceException("关联子表的表名不能为空"); | ||
| 432 | - } | ||
| 433 | - else if (StringUtils.isEmpty(genTable.getSubTableFkName())) | ||
| 434 | - { | ||
| 435 | - throw new ServiceException("子表关联的外键名不能为空"); | ||
| 436 | - } | 432 | + throw new ServiceException("关联子表的表名不能为空"); |
| 433 | + } | ||
| 434 | + else if (StringUtils.isEmpty(genTable.getSubTableFkName())) | ||
| 435 | + { | ||
| 436 | + throw new ServiceException("子表关联的外键名不能为空"); | ||
| 437 | } | 437 | } |
| 438 | } | 438 | } |
| 439 | } | 439 | } |
-
请 注册 或 登录 后发表评论