mirror of
				https://gitee.com/lab1024/smart-admin.git
				synced 2025-11-04 10:23:43 +08:00 
			
		
		
		
	fix:修复代码生成功能中非空字段取值问题(取值取反了)
This commit is contained in:
		@@ -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()));
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user