update 优化 jackson 过期方法
This commit is contained in:
parent
3b5858b114
commit
2d190cfb19
@ -39,7 +39,7 @@ public class TranslationHandler extends JsonSerializer<Object> implements Contex
|
|||||||
if (ObjectUtil.isNotNull(trans)) {
|
if (ObjectUtil.isNotNull(trans)) {
|
||||||
// 如果映射字段不为空 则取映射字段的值
|
// 如果映射字段不为空 则取映射字段的值
|
||||||
if (StringUtils.isNotBlank(translation.mapper())) {
|
if (StringUtils.isNotBlank(translation.mapper())) {
|
||||||
value = ReflectUtils.invokeGetter(gen.getCurrentValue(), translation.mapper());
|
value = ReflectUtils.invokeGetter(gen.currentValue(), translation.mapper());
|
||||||
}
|
}
|
||||||
// 如果为 null 直接写出
|
// 如果为 null 直接写出
|
||||||
if (ObjectUtil.isNull(value)) {
|
if (ObjectUtil.isNull(value)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user