fix issue
This commit is contained in:
parent
d2ed1ceec8
commit
a423e5edac
|
|
@ -349,24 +349,6 @@ public class LogAspect
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取注解中对方法的描述信息 用于Controller层注解
|
||||
*
|
||||
* @param log 日志
|
||||
* @param materialLog 物资日志
|
||||
* @throws Exception
|
||||
*/
|
||||
// public void getControllerMethodDescriptionByMaterial(JoinPoint joinPoint, Log log, BmNumLogs materialLog, Object jsonResult) throws Exception
|
||||
// {
|
||||
// // 设置标题
|
||||
// materialLog.setModelTitle(log.title());
|
||||
// // 获取参数的信息,传入到数据库中。
|
||||
// setRequestValue(joinPoint, materialLog, log.excludeParamNames());
|
||||
// // 保存response,参数和值
|
||||
// if (StringUtils.isNotNull(jsonResult)) {
|
||||
// materialLog.setJsonResult(StringUtils.substring(JSON.toJSONString(jsonResult), 0, 2000));
|
||||
// }
|
||||
// }
|
||||
|
||||
/**
|
||||
* 获取请求的参数,放到log中
|
||||
|
|
@ -387,42 +369,6 @@ public class LogAspect
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取请求的参数,放到log中
|
||||
*
|
||||
* @param numLog 物资日志
|
||||
* @throws Exception 异常
|
||||
*/
|
||||
// private void setRequestValue(JoinPoint joinPoint, BmNumLogs numLog, String[] excludeParamNames) throws Exception {
|
||||
// String requestMethod = numLog.getRequestMethod();
|
||||
// Map<?, ?> paramsMap = ServletUtils.getParamMap(ServletUtils.getRequest());
|
||||
// if (StringUtils.isEmpty(paramsMap)) {
|
||||
// if ((HttpMethod.PUT.name().equals(requestMethod) || HttpMethod.POST.name().equals(requestMethod))){
|
||||
// String params = argsArrayToString(joinPoint.getArgs(), excludeParamNames);
|
||||
// numLog.setDescription(StringUtils.substring(params, 0, 2000));
|
||||
// }
|
||||
// } else {
|
||||
// if (paramsMap.containsKey("num")) {
|
||||
// if (paramsMap.get("num") instanceof Integer) {
|
||||
// numLog.setNum(String.valueOf(paramsMap.get("num")));
|
||||
// } else if (paramsMap.get("num") instanceof String) {
|
||||
// numLog.setNum((String) paramsMap.get("num"));
|
||||
// }
|
||||
// }
|
||||
// if (paramsMap.containsKey("taskId")) {
|
||||
// numLog.setTask(String.valueOf(paramsMap.get("taskId")));
|
||||
// }
|
||||
// if (paramsMap.containsKey("typeId")) {
|
||||
// if (paramsMap.get("typeId") instanceof Integer) {
|
||||
// numLog.setTypeId((Integer) paramsMap.get("typeId"));
|
||||
// } else if (paramsMap.get("typeId") instanceof String) {
|
||||
// numLog.setTypeId(Integer.valueOf((String) paramsMap.get("typeId")));
|
||||
// }
|
||||
// }
|
||||
// numLog.setDescription(StringUtils.substring(JSON.toJSONString(paramsMap, excludePropertyPreFilter(excludeParamNames)), 0, 2000));
|
||||
// }
|
||||
// }
|
||||
|
||||
/**
|
||||
* 参数拼装
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue