!834 fix MapToMap ignoreNullValue

Merge pull request !834 from 不忘初心/v5-dev
This commit is contained in:
Looly 2022-10-12 06:33:38 +00:00 committed by Gitee
commit ff4496e679
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -48,6 +48,10 @@ public class MapToMapCopier extends AbsCopier<Map, Map> {
if (false == copyOptions.override && null != targetValue) {
return;
}
// 忽略空值
if (true == copyOptions.ignoreNullValue && sValue == null) {
return;
}
// 获取目标值真实类型并转换源值
final Type[] typeArguments = TypeUtil.getTypeArguments(this.targetType);