mirror of https://github.com/elunez/eladmin
修复个人中心用户日志查询问题
parent
d78e1decb3
commit
0e7c4fcbff
|
@ -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 {
|
||||||
@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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue