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 6ff16e64..341e4039 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 @@ -66,13 +66,13 @@ public class ApiArgumentResolver implements SopHandlerMethodArgumentResolver { * * @param methodParameter * @param nativeWebRequest - * @return + * @return 没有返回null */ protected Object getParamObject(MethodParameter methodParameter, NativeWebRequest nativeWebRequest) { String bizContent = nativeWebRequest.getParameter(ParamNames.BIZ_CONTENT_NAME); - Class parameterType = methodParameter.getParameterType(); Object bizObj = null; if (bizContent != null) { + Class parameterType = methodParameter.getParameterType(); bizObj = JSON.parseObject(bizContent, parameterType); } this.bindUploadFile(bizObj, nativeWebRequest); @@ -80,7 +80,7 @@ public class ApiArgumentResolver implements SopHandlerMethodArgumentResolver { } /** - * 将文件绑定到 + * 将上传文件对象绑定到属性中 * * @param bizObj 业务参数 * @param nativeWebRequest