| | |
| | | IPage<NcLogInfo> userIPage = this.page(pageData, queryWrapper); |
| | | /*if (userIPage != null && userIPage.getRecords() != null && !userIPage.getRecords().isEmpty()) { |
| | | for (NcLogInfo nc : userIPage.getRecords()) { |
| | | User user = userService.getById(nc.getCreateUser()); |
| | | User user = userService.getById(nc.getCreateBy()); |
| | | if (user != null) { |
| | | nc.setNickname(user.getNickname()); |
| | | nc.setUsername(user.getUsername()); |
| | |
| | | //设置IP地址 |
| | | logInfo.setIp(IpUtils.getIpAddr(request)); |
| | | super.save(logInfo); |
| | | SysUser user = userService.getById(logInfo.getCreateUser()); |
| | | SysUser user = userService.getById(logInfo.getCreateBy()); |
| | | if (user != null) { |
| | | logInfo.setNickName(user.getRealname()); |
| | | logInfo.setUserName(user.getUsername()); |
| | |
| | | //设置IP地址 |
| | | logInfo.setIp(IpUtils.getIpAddr(request)); |
| | | super.save(logInfo); |
| | | SysUser user = userService.getById(logInfo.getCreateUser()); |
| | | SysUser user = userService.getById(logInfo.getCreateBy()); |
| | | if (user != null) { |
| | | logInfo.setNickName(user.getRealname()); |
| | | logInfo.setUserName(user.getUsername()); |
| | |
| | | ncLogInfoList.forEach(item->{ |
| | | //翻译用户名、操作类型 |
| | | item.setOperateTypeStr(iSysDictService.queryDictTextByKey("OPERATE_TYPE",item.getOperateType().toString())); |
| | | item.setCreateUser(userService.getById(item.getCreateUser()).getRealname()); |
| | | item.setCreateBy(userService.getById(item.getCreateBy()).getRealname()); |
| | | }); |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |