🐛 fix:修改序列化

This commit is contained in:
weihongyang 2022-08-09 16:10:18 +08:00
부모 f5988be736
커밋 e644d027b2
3개의 변경된 파일8개의 추가작업 그리고 16개의 파일을 삭제

파일 보기

@ -47,8 +47,6 @@ public class SysLogLoginController {
public Result<PageData<SysLogLoginDTO>> page(@ApiIgnore @RequestParam Map<String, Object> params){
PageData<SysLogLoginDTO> page = sysLogLoginService.page(params);
log.info("PageData<SysLogLoginDTO>====={}",page.toString());
return new Result<PageData<SysLogLoginDTO>>().ok(page);
}

파일 보기

@ -1,19 +1,16 @@
package com.cnbm.admin.entity;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.stream.Collectors;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Collection;
import java.util.List;
import java.util.stream.Collectors;
/**
* @Author weihongyang
@ -23,9 +20,7 @@ import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class LoginUser implements UserDetails,Serializable {
private static final long serialVersionUID = 1L;
public class LoginUser implements UserDetails{
private SysUserEntity sysUserEntity;

파일 보기

@ -28,7 +28,6 @@ public class SysLogLoginServiceImpl extends BaseServiceImpl<SysLogLoginDao, SysL
getPage(params, Constant.CREATE_DATE, false),
getWrapper(params)
);
log.info("page======{}",page.toString());
return getPageData(page, SysLogLoginDTO.class);
}