mirror of https://gitee.com/y_project/RuoYi.git
同步表结构不存在,提示错误信息
parent
7aedaf2085
commit
9f21f8816a
|
@ -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 -> {
|
||||
|
|
Loading…
Reference in New Issue