修复collection bug

jingwei
ic_excellent 2023-06-02 11:04:26 +08:00
parent 2af595ad81
commit a470f368cb
1 changed files with 1 additions and 1 deletions

View File

@ -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) {