@ -304,8 +304,17 @@ public class GenTableServiceImpl implements IGenTableService
@@ -304,8 +304,17 @@ public class GenTableServiceImpl implements IGenTableService
column . setColumnId ( prevColumn . getColumnId ( ) ) ;
if ( column . isList ( ) )
{
// 如果是列表,继续保留字典类型
// 如果是列表,继续保留查询方式/ 字典类型选项
column . setDictType ( prevColumn . getDictType ( ) ) ;
column . setQueryType ( prevColumn . getQueryType ( ) ) ;
}
if ( StringUtils . isNotEmpty ( prevColumn . getIsRequired ( ) ) & & ! column . isPk ( )
& & ( column . isInsert ( ) | | column . isEdit ( ) )
& & ( ( column . isUsableColumn ( ) ) | | ( ! column . isSuperColumn ( ) ) ) )
{
// 如果是(新增/修改&非主键/非忽略及父属性),继续保留必填/显示类型选项
column . setIsRequired ( prevColumn . getIsRequired ( ) ) ;
column . setHtmlType ( prevColumn . getHtmlType ( ) ) ;
}
genTableColumnMapper . updateGenTableColumn ( column ) ;
}