mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-09-17 10:56:39 +08:00
fix:修复代码生成功能中非空字段取值问题(取值取反了)
This commit is contained in:
parent
b2aa70ce9e
commit
2b6ead23bd
@ -65,7 +65,7 @@ public class CodeGeneratorService {
|
||||
public List<TableColumnVO> getTableColumns(String tableName) {
|
||||
List<TableColumnVO> tableColumns = codeGeneratorDao.selectTableColumn(tableName);
|
||||
for (TableColumnVO tableColumn : tableColumns) {
|
||||
tableColumn.setNullableFlag(!COLUMN_NULLABLE_IDENTIFY.equalsIgnoreCase(tableColumn.getIsNullable()));
|
||||
tableColumn.setNullableFlag(COLUMN_NULLABLE_IDENTIFY.equalsIgnoreCase(tableColumn.getIsNullable()));
|
||||
tableColumn.setPrimaryKeyFlag(COLUMN_PRIMARY_KEY.equalsIgnoreCase(tableColumn.getColumnKey()));
|
||||
tableColumn.setAutoIncreaseFlag(SmartStringUtil.isNotEmpty(tableColumn.getExtra()) && COLUMN_AUTO_INCREASE.equalsIgnoreCase(tableColumn.getExtra()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user