Commit 0e7c4fcb authored by Zheng Jie's avatar Zheng Jie
Browse files

修复个人中心用户日志查询问题

parent d78e1dec
...@@ -71,7 +71,7 @@ public class LogController { ...@@ -71,7 +71,7 @@ public class LogController {
@ApiOperation("用户日志查询") @ApiOperation("用户日志查询")
public ResponseEntity<Object> queryUserLog(LogQueryCriteria criteria, Pageable pageable){ public ResponseEntity<Object> queryUserLog(LogQueryCriteria criteria, Pageable pageable){
criteria.setLogType("INFO"); criteria.setLogType("INFO");
criteria.setBlurry(SecurityUtils.getCurrentUsername()); criteria.setUsername(SecurityUtils.getCurrentUsername());
return new ResponseEntity<>(logService.queryAllByUser(criteria,pageable), HttpStatus.OK); return new ResponseEntity<>(logService.queryAllByUser(criteria,pageable), HttpStatus.OK);
} }
......
...@@ -31,6 +31,9 @@ public class LogQueryCriteria { ...@@ -31,6 +31,9 @@ public class LogQueryCriteria {
@Query(blurry = "username,description,address,requestIp,method,params") @Query(blurry = "username,description,address,requestIp,method,params")
private String blurry; private String blurry;
@Query
private String username;
@Query @Query
private String logType; private String logType;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment