diff --git a/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/param/ApiArgumentResolver.java b/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/param/ApiArgumentResolver.java index 11f2ece3..97d53c50 100644 --- a/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/param/ApiArgumentResolver.java +++ b/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/param/ApiArgumentResolver.java @@ -124,11 +124,15 @@ public class ApiArgumentResolver implements SopHandlerMethodArgumentResolver { , WebDataBinderFactory webDataBinderFactory ) throws Exception { if (openApiParams.contains(methodParameter)) { - Object paramObj = this.getParamObject(methodParameter, nativeWebRequest); + Object ret = this.getParamObject(methodParameter, nativeWebRequest); + Object paramObj = ret; + if (paramObj instanceof OpenContext) { + paramObj = ((OpenContext) paramObj).getBizObject(); + } if (paramObj != null) { // JSR-303验证 paramValidator.validateBizParam(paramObj); - return paramObj; + return ret; } } HandlerMethodArgumentResolver resolver = getOtherArgumentResolver(methodParameter);