update 优化 jackson 过期方法

dev
疯狂的狮子Li 1 year ago
parent 15c06c7ebe
commit eb5f93325b

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

Loading…
Cancel
Save