🐛 fix:修改序列化
This commit is contained in:
parent
f5988be736
commit
e644d027b2
@ -47,8 +47,6 @@ public class SysLogLoginController {
|
|||||||
public Result<PageData<SysLogLoginDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
public Result<PageData<SysLogLoginDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
|
||||||
PageData<SysLogLoginDTO> page = sysLogLoginService.page(params);
|
PageData<SysLogLoginDTO> page = sysLogLoginService.page(params);
|
||||||
|
|
||||||
log.info("PageData<SysLogLoginDTO>====={}",page.toString());
|
|
||||||
|
|
||||||
return new Result<PageData<SysLogLoginDTO>>().ok(page);
|
return new Result<PageData<SysLogLoginDTO>>().ok(page);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,19 +1,16 @@
|
|||||||
package com.cnbm.admin.entity;
|
package com.cnbm.admin.entity;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||||
import java.util.Collection;
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import java.util.List;
|
import lombok.Data;
|
||||||
import java.util.stream.Collectors;
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
import org.springframework.security.core.GrantedAuthority;
|
import org.springframework.security.core.GrantedAuthority;
|
||||||
import org.springframework.security.core.authority.SimpleGrantedAuthority;
|
import org.springframework.security.core.authority.SimpleGrantedAuthority;
|
||||||
import org.springframework.security.core.userdetails.UserDetails;
|
import org.springframework.security.core.userdetails.UserDetails;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
import java.util.Collection;
|
||||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
import java.util.List;
|
||||||
|
import java.util.stream.Collectors;
|
||||||
import lombok.Data;
|
|
||||||
import lombok.NoArgsConstructor;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Author weihongyang
|
* @Author weihongyang
|
||||||
@ -23,9 +20,7 @@ import lombok.NoArgsConstructor;
|
|||||||
@Data
|
@Data
|
||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||||
public class LoginUser implements UserDetails,Serializable {
|
public class LoginUser implements UserDetails{
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
|
|
||||||
private SysUserEntity sysUserEntity;
|
private SysUserEntity sysUserEntity;
|
||||||
|
|
||||||
|
@ -28,7 +28,6 @@ public class SysLogLoginServiceImpl extends BaseServiceImpl<SysLogLoginDao, SysL
|
|||||||
getPage(params, Constant.CREATE_DATE, false),
|
getPage(params, Constant.CREATE_DATE, false),
|
||||||
getWrapper(params)
|
getWrapper(params)
|
||||||
);
|
);
|
||||||
log.info("page======{}",page.toString());
|
|
||||||
|
|
||||||
return getPageData(page, SysLogLoginDTO.class);
|
return getPageData(page, SysLogLoginDTO.class);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user