代码优化

1.x
tanghc 5 years ago
parent ec556ebf7b
commit b1ebd770c2
  1. 6
      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

Loading…
Cancel
Save