update 优化 jackson 过期方法

This commit is contained in:
疯狂的狮子Li 2024-10-29 19:12:19 +08:00
parent 3b5858b114
commit 2d190cfb19

View File

@ -39,7 +39,7 @@ public class TranslationHandler extends JsonSerializer<Object> implements Contex
if (ObjectUtil.isNotNull(trans)) {
// 如果映射字段不为空 则取映射字段的值
if (StringUtils.isNotBlank(translation.mapper())) {
value = ReflectUtils.invokeGetter(gen.getCurrentValue(), translation.mapper());
value = ReflectUtils.invokeGetter(gen.currentValue(), translation.mapper());
}
// 如果为 null 直接写出
if (ObjectUtil.isNull(value)) {