|
...
|
...
|
@@ -144,10 +144,10 @@ public class GenTableServiceImpl implements IGenTableService |
|
|
|
public void importGenTable(List<GenTable> tableList)
|
|
|
|
{
|
|
|
|
String operName = SecurityUtils.getUsername();
|
|
|
|
for (GenTable table : tableList)
|
|
|
|
{
|
|
|
|
try
|
|
|
|
{
|
|
|
|
for (GenTable table : tableList)
|
|
|
|
{
|
|
|
|
String tableName = table.getTableName();
|
|
|
|
GenUtils.initTable(table, operName);
|
|
|
|
int row = genTableMapper.insertGenTable(table);
|
|
...
|
...
|
@@ -162,10 +162,10 @@ public class GenTableServiceImpl implements IGenTableService |
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (Exception e)
|
|
|
|
{
|
|
|
|
log.error("表名 " + table.getTableName() + " 导入失败:", e);
|
|
|
|
}
|
|
|
|
throw new CustomException("导入失败:" + e.getMessage());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|