mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-01 18:35:37 +08:00
修复非多选查询错误
This commit is contained in:
@@ -34,13 +34,20 @@ public class DictInTermTypeMapper extends AbstractSqlTermCustomer {
|
||||
}
|
||||
|
||||
private boolean support(RDBColumnMetaData column) {
|
||||
if(column.getJdbcType()== JDBCType.VARCHAR){
|
||||
return false;
|
||||
}
|
||||
Class type = column.getJavaType();
|
||||
if (type != null && type.isArray()) {
|
||||
type = type.getComponentType();
|
||||
}
|
||||
return ((type != null && type.isEnum() && EnumDict.class.isAssignableFrom(type))
|
||||
|
||||
return ((type != null && type.isEnum()
|
||||
&& EnumDict.class.isAssignableFrom(type)
|
||||
&& column.getJavaType().isArray())
|
||||
||
|
||||
(column.getProperty(USE_DICT_MASK_FLAG).isTrue() && column.getOptionConverter() != null));
|
||||
(column.getProperty(USE_DICT_MASK_FLAG).isTrue()
|
||||
&& column.getOptionConverter() != null));
|
||||
}
|
||||
|
||||
@SuppressWarnings("all")
|
||||
|
||||
@@ -34,11 +34,16 @@ public class DictTermTypeMapper extends AbstractSqlTermCustomer {
|
||||
}
|
||||
|
||||
private boolean support(RDBColumnMetaData column) {
|
||||
if (column.getJdbcType() == JDBCType.VARCHAR) {
|
||||
return false;
|
||||
}
|
||||
Class type = column.getJavaType();
|
||||
if (type != null && type.isArray()) {
|
||||
type = type.getComponentType();
|
||||
}
|
||||
return ((type != null && type.isEnum() && EnumDict.class.isAssignableFrom(type))
|
||||
return ((type != null && type.isEnum()
|
||||
&& EnumDict.class.isAssignableFrom(type)
|
||||
&& column.getJavaType().isArray())
|
||||
||
|
||||
(column.getProperty(USE_DICT_MASK_FLAG).isTrue() && column.getOptionConverter() != null));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user