Skip to content

Commit

Permalink
同步表结构不存在,提示错误信息
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzongzhuan committed Aug 23, 2020
1 parent 7aedaf2 commit 9f21f88
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,10 @@ public void synchDb(String tableName)
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 -> {
Expand Down

0 comments on commit 9f21f88

Please sign in to comment.