系统日志

master
shijie 4 years ago
parent 508f041b4b
commit 98ee7624de
  1. 7
      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); UserEntity systemUser = JSON.parseObject(userEntityStr,UserEntity.class);
//根据userId查询工号以及员工姓名 //根据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<Token>().eq("token", token)); //Token userToken = tokenService.getOne(new QueryWrapper<Token>().eq("token", token));
//UserEntity systemUser = userLoginService.getOne(new QueryWrapper<UserEntity>().eq("id",userId)); //UserEntity systemUser = userLoginService.getOne(new QueryWrapper<UserEntity>().eq("id",userId));
operation.addOperationLog(joinPoint,res,time,systemUser,employeeEntity); //operation.addOperationLog(joinPoint,res,time,systemUser,employeeEntity);
//方法执行完成后增加日志 //方法执行完成后增加日志
// addOperationLog(joinPoint, res, time); // addOperationLog(joinPoint, res, time);
} catch (Exception e) { } catch (Exception e) {

Loading…
Cancel
Save