正在显示
1 个修改的文件
包含
6 行增加
和
6 行删除
| @@ -144,9 +144,9 @@ public class GenTableServiceImpl implements IGenTableService | @@ -144,9 +144,9 @@ public class GenTableServiceImpl implements IGenTableService | ||
| 144 | public void importGenTable(List<GenTable> tableList) | 144 | public void importGenTable(List<GenTable> tableList) |
| 145 | { | 145 | { |
| 146 | String operName = SecurityUtils.getUsername(); | 146 | String operName = SecurityUtils.getUsername(); |
| 147 | - for (GenTable table : tableList) | 147 | + try |
| 148 | { | 148 | { |
| 149 | - try | 149 | + for (GenTable table : tableList) |
| 150 | { | 150 | { |
| 151 | String tableName = table.getTableName(); | 151 | String tableName = table.getTableName(); |
| 152 | GenUtils.initTable(table, operName); | 152 | GenUtils.initTable(table, operName); |
| @@ -162,10 +162,10 @@ public class GenTableServiceImpl implements IGenTableService | @@ -162,10 +162,10 @@ public class GenTableServiceImpl implements IGenTableService | ||
| 162 | } | 162 | } |
| 163 | } | 163 | } |
| 164 | } | 164 | } |
| 165 | - catch (Exception e) | ||
| 166 | - { | ||
| 167 | - log.error("表名 " + table.getTableName() + " 导入失败:", e); | ||
| 168 | - } | 165 | + } |
| 166 | + catch (Exception e) | ||
| 167 | + { | ||
| 168 | + throw new CustomException("导入失败:" + e.getMessage()); | ||
| 169 | } | 169 | } |
| 170 | } | 170 | } |
| 171 | 171 |
-
请 注册 或 登录 后发表评论