mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 17:18:24 +08:00
Revert "fix: Field Query 发生 TooManyResultsException"
This reverts commit 2505feba12f56441d2f956b5c12048223bca72f5.
This commit is contained in:
parent
b5b8e8172b
commit
5abc033d9d
@ -740,11 +740,11 @@ public interface BaseMapper<T> {
|
||||
Class<?> mappingType = fieldWrapper.getMappingType();
|
||||
|
||||
Object value;
|
||||
if (Set.class.isAssignableFrom(fieldType)) {
|
||||
if (fieldType.isAssignableFrom(List.class)) {
|
||||
value = selectListByQueryAs(childQuery, mappingType);
|
||||
} else if (fieldType.isAssignableFrom(Set.class)) {
|
||||
value = selectListByQueryAs(childQuery, mappingType);
|
||||
value = new HashSet<>((Collection<?>) value);
|
||||
} else if (Collection.class.isAssignableFrom(fieldType)) {
|
||||
value = selectListByQueryAs(childQuery, mappingType);
|
||||
} else if (fieldType.isArray()) {
|
||||
value = selectListByQueryAs(childQuery, mappingType);
|
||||
value = ((List<?>) value).toArray();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user