This commit is contained in:
Redkale
2020-01-30 12:04:56 +08:00
parent 32e8c033ea
commit 58f5ee999a

View File

@@ -1007,7 +1007,9 @@ public final class EntityInfo<T> {
case MOV: case MOV:
CryptHandler handler = attr.attach(); CryptHandler handler = attr.attach();
if (handler != null) val = handler.encrypt(val); if (handler != null) val = handler.encrypt(val);
return formatter == null ? formatToString(val) : formatter.apply(this, val); CharSequence rs = formatter == null ? formatToString(val) : formatter.apply(this, val);
if (rs == null && isNotNullJson(attr)) rs = "";
return rs;
} }
CryptHandler handler = attr.attach(); CryptHandler handler = attr.attach();
if (handler != null) val = handler.encrypt(val); if (handler != null) val = handler.encrypt(val);