mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2025-08-29 09:04:04 +00:00
update 优化 jackson 过期方法
This commit is contained in:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user