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

pull/789/head
Zheng Jie 2022-05-26 13:43:54 +08:00
parent d78e1decb3
commit 0e7c4fcbff
2 changed files with 4 additions and 1 deletions

View File

@ -71,7 +71,7 @@ public class LogController {
@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);
}

View File

@ -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;