未设置主键列默认首个字段为主键信息

pull/117/head
RuoYi 2019-08-08 16:24:09 +08:00
parent 129cea08ce
commit b5cef34426
1 changed files with 4 additions and 0 deletions

View File

@ -314,6 +314,10 @@ public class GenTableServiceImpl implements IGenTableService
break;
}
}
if (StringUtils.isNull(table.getPkColumn()))
{
table.setPkColumn(columns.get(0));
}
}
/**