|
@@ -77,7 +77,7 @@ public class LogAspect {
|
|
|
} finally {
|
|
|
try {
|
|
|
//方法执行完成后增加日志
|
|
|
- addOperationLog(joinPoint, res, endTime - beginTime,runStatus);
|
|
|
+ addOperationLog(joinPoint, res, endTime - beginTime, runStatus);
|
|
|
} catch (Exception e) {
|
|
|
System.out.println("LogAspect 操作失败:" + e.getMessage());
|
|
|
e.printStackTrace();
|
|
@@ -94,7 +94,7 @@ public class LogAspect {
|
|
|
* @param time 方法执行时间
|
|
|
* @param runStatus 方法执行状态
|
|
|
*/
|
|
|
- private void addOperationLog(JoinPoint joinPoint, Object res, long time,String runStatus) {
|
|
|
+ private void addOperationLog(JoinPoint joinPoint, Object res, long time, String runStatus) {
|
|
|
SysUser requestUser = (SysUser) ServletUtil.getRequestUser();
|
|
|
String userName = requestUser.getRealName();
|
|
|
HttpServletRequest request = ServletUtil.getRequest();
|
|
@@ -117,7 +117,7 @@ public class LogAspect {
|
|
|
operationLog.setReturnValue(JSON.toJSONString(res));
|
|
|
operationLog.setUserId(requestUser.getId());
|
|
|
operationLog.setUserName(userName);
|
|
|
- operationLog.setCreateTime(new Date().getTime());
|
|
|
+ operationLog.setCreateTime(System.currentTimeMillis());
|
|
|
|
|
|
// 注解中的信息
|
|
|
OperationLogDetail annotation = signature.getMethod().getAnnotation(OperationLogDetail.class);
|