|
|
@ -155,10 +155,10 @@ public class GenTableServiceImpl implements IGenTableService
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
@Transactional
|
|
|
|
@Transactional
|
|
|
|
public void importGenTable(List<GenTable> tableList, String operName)
|
|
|
|
public void importGenTable(List<GenTable> tableList, String operName)
|
|
|
|
{
|
|
|
|
|
|
|
|
for (GenTable table : tableList)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try
|
|
|
|
try
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
for (GenTable table : tableList)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
String tableName = table.getTableName();
|
|
|
|
String tableName = table.getTableName();
|
|
|
|
GenUtils.initTable(table, operName);
|
|
|
|
GenUtils.initTable(table, operName);
|
|
|
@ -174,10 +174,10 @@ public class GenTableServiceImpl implements IGenTableService
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
catch (Exception e)
|
|
|
|
catch (Exception e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
log.error("表名 " + table.getTableName() + " 导入失败:", e);
|
|
|
|
throw new BusinessException("导入失败:" + e.getMessage());
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|