From 98ee7624de2b83e8e15c19c80b675ccfb7b33ee6 Mon Sep 17 00:00:00 2001 From: shijie <648688341@qq.com> Date: Thu, 18 Mar 2021 10:26:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/daqing/financial/hrauth/aspect/SysLogAspect.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dq-financial-hrms-auth/src/main/java/com/daqing/financial/hrauth/aspect/SysLogAspect.java b/dq-financial-hrms-auth/src/main/java/com/daqing/financial/hrauth/aspect/SysLogAspect.java index 4e8abaff..fc0d14f3 100644 --- a/dq-financial-hrms-auth/src/main/java/com/daqing/financial/hrauth/aspect/SysLogAspect.java +++ b/dq-financial-hrms-auth/src/main/java/com/daqing/financial/hrauth/aspect/SysLogAspect.java @@ -79,11 +79,14 @@ public class SysLogAspect { UserEntity systemUser = JSON.parseObject(userEntityStr,UserEntity.class); //根据userId查询工号以及员工姓名 - EmployeeEntity employeeEntity = hrmsFeignService.getEmpmsgById(Long.valueOf(userId)); + if(userId !=null || userId != ""){ + EmployeeEntity employeeEntity = hrmsFeignService.getEmpmsgById(Long.valueOf(userId)); + operation.addOperationLog(joinPoint,res,time,systemUser,employeeEntity); + } //Token userToken = tokenService.getOne(new QueryWrapper().eq("token", token)); //UserEntity systemUser = userLoginService.getOne(new QueryWrapper().eq("id",userId)); - operation.addOperationLog(joinPoint,res,time,systemUser,employeeEntity); + //operation.addOperationLog(joinPoint,res,time,systemUser,employeeEntity); //方法执行完成后增加日志 // addOperationLog(joinPoint, res, time); } catch (Exception e) {