修复collection bug
parent
2af595ad81
commit
a470f368cb
|
@ -586,7 +586,7 @@ public class ResultMapper {
|
||||||
if (collectionMapping != null) {
|
if (collectionMapping != null) {
|
||||||
Object collection = collection(rs, collectionMapping, method);
|
Object collection = collection(rs, collectionMapping, method);
|
||||||
try {
|
try {
|
||||||
if (Objects.nonNull(value)) {
|
if (Objects.nonNull(collection)) {
|
||||||
propertyDescriptor.getWriteMethod().invoke(o, collection);
|
propertyDescriptor.getWriteMethod().invoke(o, collection);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in New Issue