未设置主键列默认首个字段为主键信息
This commit is contained in:
@ -314,6 +314,10 @@ public class GenTableServiceImpl implements IGenTableService
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (StringUtils.isNull(table.getPkColumn()))
|
||||
{
|
||||
table.setPkColumn(columns.get(0));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user