|
@ -71,11 +71,13 @@ public class ReportRequestAspect { |
|
|
private void fillArgsToRequestBody(Object[] args, Map<String, Object> storedParams, Parameter[] parameters) { |
|
|
private void fillArgsToRequestBody(Object[] args, Map<String, Object> storedParams, Parameter[] parameters) { |
|
|
for (int i = 0; i < args.length; i++) { |
|
|
for (int i = 0; i < args.length; i++) { |
|
|
Object arg = args[i]; |
|
|
Object arg = args[i]; |
|
|
Class<?> argClazz = arg.getClass(); |
|
|
//Class<?> argClazz = arg.getClass();
|
|
|
RequestBody requestBodyAnno = parameters[i].getAnnotation(RequestBody.class); |
|
|
RequestBody requestBodyAnno = parameters[i].getAnnotation(RequestBody.class); |
|
|
if (arg != null && requestBodyAnno != null) { |
|
|
if (arg != null && requestBodyAnno != null) { |
|
|
Object argBean = BeanUtil.mapToBean(storedParams, arg.getClass(), true); |
|
|
Object argBean = BeanUtil.mapToBean(storedParams, arg.getClass(), true); |
|
|
BeanUtil.copyProperties(argBean, arg); |
|
|
|
|
|
|
|
|
// 分页参数需要从
|
|
|
|
|
|
BeanUtil.copyProperties(argBean, arg, "pageSize", "pageNo", "isPage"); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|