From b1ebd770c218b4f63404c8fca7fbb9ca9d747007 Mon Sep 17 00:00:00 2001 From: tanghc Date: Mon, 22 Jul 2019 10:32:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gitee/sop/servercommon/param/ApiArgumentResolver.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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