From a470f368cb496b9dc72d6b617d45306ca44ffcf4 Mon Sep 17 00:00:00 2001 From: ic_excellent <2570192571@qq.com> Date: Fri, 2 Jun 2023 11:04:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dcollection=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/aiyh/utils/recordset/ResultMapper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/aiyh/utils/recordset/ResultMapper.java b/src/main/java/aiyh/utils/recordset/ResultMapper.java index 1f1389d..c25e24e 100644 --- a/src/main/java/aiyh/utils/recordset/ResultMapper.java +++ b/src/main/java/aiyh/utils/recordset/ResultMapper.java @@ -586,7 +586,7 @@ public class ResultMapper { if (collectionMapping != null) { Object collection = collection(rs, collectionMapping, method); try { - if (Objects.nonNull(value)) { + if (Objects.nonNull(collection)) { propertyDescriptor.getWriteMethod().invoke(o, collection); } } catch (Exception e) {