From 12e74b0650272f4b01f5cdf531c48b8e5d6159f4 Mon Sep 17 00:00:00 2001 From: shijie <648688341@qq.com> Date: Thu, 25 Mar 2021 12:06:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E5=8A=9F=E8=83=BD=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/daqing/framework/aspect/SysLogAspect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dq-framework-common/src/main/java/com/daqing/framework/aspect/SysLogAspect.java b/dq-framework-common/src/main/java/com/daqing/framework/aspect/SysLogAspect.java index 1f859e22..a6f9e75c 100644 --- a/dq-framework-common/src/main/java/com/daqing/framework/aspect/SysLogAspect.java +++ b/dq-framework-common/src/main/java/com/daqing/framework/aspect/SysLogAspect.java @@ -70,7 +70,7 @@ public class SysLogAspect { UserEntity systemUser = JSON.parseObject(userEntityStr,UserEntity.class); //根据userId查询工号以及员工姓名 - if(userId !=null || userId != ""){ + if(userId !=null && userId != ""){ EmployeeEntity employeeEntity = hrmsFeignService.getEmpmsgById(Long.valueOf(userId)); operation.addOperationLog(joinPoint,res,time,systemUser,employeeEntity); }