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

This commit is contained in:
RuoYi
2019-08-08 16:24:09 +08:00
parent 129cea08ce
commit b5cef34426

View File

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