Skip to content

Commit

Permalink
修复个人中心用户日志查询问题
Browse files Browse the repository at this point in the history
  • Loading branch information
elunez committed May 26, 2022
1 parent d78e1de commit 0e7c4fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public ResponseEntity<Object> queryLog(LogQueryCriteria criteria, Pageable pagea
@ApiOperation("用户日志查询")
public ResponseEntity<Object> queryUserLog(LogQueryCriteria criteria, Pageable pageable){
criteria.setLogType("INFO");
criteria.setBlurry(SecurityUtils.getCurrentUsername());
criteria.setUsername(SecurityUtils.getCurrentUsername());
return new ResponseEntity<>(logService.queryAllByUser(criteria,pageable), HttpStatus.OK);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ public class LogQueryCriteria {
@Query(blurry = "username,description,address,requestIp,method,params")
private String blurry;

@Query
private String username;

@Query
private String logType;

Expand Down

0 comments on commit 0e7c4fc

Please sign in to comment.