mirror of https://gitee.com/y_project/RuoYi.git
未设置主键列默认首个字段为主键信息
parent
129cea08ce
commit
b5cef34426
|
@ -314,6 +314,10 @@ public class GenTableServiceImpl implements IGenTableService
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (StringUtils.isNull(table.getPkColumn()))
|
||||
{
|
||||
table.setPkColumn(columns.get(0));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue