|
@@ -290,6 +290,10 @@ public class GenTableServiceImpl implements IGenTableService
|
|
|
List<String> tableColumnNames = tableColumns.stream().map(GenTableColumn::getColumnName).collect(Collectors.toList());
|
|
|
|
|
|
List<GenTableColumn> dbTableColumns = genTableColumnMapper.selectDbTableColumnsByName(tableName);
|
|
|
+ if (StringUtils.isEmpty(dbTableColumns))
|
|
|
+ {
|
|
|
+ throw new BusinessException("同步数据失败,原表结构不存在");
|
|
|
+ }
|
|
|
List<String> dbTableColumnNames = dbTableColumns.stream().map(GenTableColumn::getColumnName).collect(Collectors.toList());
|
|
|
|
|
|
dbTableColumns.forEach(column -> {
|