This commit is contained in:
Looly 2024-08-25 22:34:22 +08:00
parent c2e0da7182
commit 3e9452dfe8

View File

@ -69,7 +69,9 @@ public class TripleConverter implements Converter {
public Triple<?, ?, ?> convert(final Type leftType, final Type middleType, final Type rightType, final Object value)
throws ConvertException {
Map map = null;
if (BeanUtil.isReadableBean(value.getClass())) {
if(value instanceof Map){
map = (Map) value;
}else if (BeanUtil.isReadableBean(value.getClass())) {
// 一次性只读场景包装为Map效率更高
map = BeanUtil.toBeanMap(value);
}