添加 @Serial 序列化注解
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
package com.jeesite.common.shiro.authc;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@@ -13,6 +14,7 @@ import java.util.Map;
|
||||
*/
|
||||
public class LdapToken extends FormToken {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public LdapToken() {
|
||||
|
||||
@@ -14,6 +14,8 @@ import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Pattern;
|
||||
import jakarta.validation.constraints.Size;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 业务分类Entity
|
||||
* @author ThinkGem
|
||||
@@ -30,6 +32,7 @@ import jakarta.validation.constraints.Size;
|
||||
)
|
||||
public class BizCategory extends TreeEntity<BizCategory> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String categoryCode; // 分类编码
|
||||
private String viewCode; // 分类代码(作为显示用,多租户内唯一)
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
package com.jeesite.modules.msg.entity;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.Date;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
@@ -53,6 +54,7 @@ public class MsgInner extends DataEntity<MsgInner> {
|
||||
public static final String CONTENT_LEVEL_2 = "2";
|
||||
public static final String CONTENT_LEVEL_3 = "3";
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String msgTitle; // 消息标题
|
||||
private String contentLevel; // 内容等级(1普通 2一般 3紧急)
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
package com.jeesite.modules.msg.entity;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.Date;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
@@ -37,6 +38,7 @@ public class MsgInnerRecord extends DataEntity<MsgInnerRecord> {
|
||||
public static final String READ_STATUS_READ = "1";
|
||||
public static final String READ_STATUS_UNREAD = "2";
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String msgInnerId; // 所属消息
|
||||
private String receiveUserCode; // 接受者用户编码
|
||||
|
||||
@@ -13,6 +13,8 @@ import com.jeesite.common.mybatis.annotation.Column;
|
||||
import com.jeesite.common.mybatis.annotation.Table;
|
||||
import com.jeesite.common.mybatis.mapper.query.QueryType;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 行政区划Entity
|
||||
* @author ThinkGem
|
||||
@@ -28,6 +30,7 @@ import com.jeesite.common.mybatis.mapper.query.QueryType;
|
||||
)
|
||||
public class Area extends TreeEntity<Area> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String areaCode; // 区域代码
|
||||
private String areaName; // 区域名称
|
||||
|
||||
@@ -19,6 +19,8 @@ import com.jeesite.common.mybatis.mapper.query.QueryType;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Pattern;
|
||||
import jakarta.validation.constraints.Size;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -49,6 +51,7 @@ import java.util.List;
|
||||
)
|
||||
public class Company extends TreeEntity<Company> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String companyCode; // 公司编码
|
||||
private String viewCode; // 公司代码
|
||||
|
||||
@@ -9,6 +9,8 @@ import com.jeesite.common.entity.DataEntity;
|
||||
import com.jeesite.common.mybatis.annotation.Column;
|
||||
import com.jeesite.common.mybatis.annotation.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 公司机构Entity
|
||||
* @author ThinkGem
|
||||
@@ -21,6 +23,7 @@ import com.jeesite.common.mybatis.annotation.Table;
|
||||
)
|
||||
public class CompanyOffice extends DataEntity<CompanyOffice> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String companyCode; // 公司编码
|
||||
private String officeCode; // 机构编码
|
||||
|
||||
@@ -20,6 +20,8 @@ import com.jeesite.common.utils.excel.fieldtype.OfficeType;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.Valid;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 员工用户管理Entity
|
||||
* @author ThinkGem
|
||||
@@ -84,6 +86,7 @@ import jakarta.validation.Valid;
|
||||
)
|
||||
public class EmpUser extends User {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String[] codes; // 查询用
|
||||
|
||||
@@ -17,6 +17,8 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import jakarta.validation.constraints.Size;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@@ -50,6 +52,7 @@ import java.util.stream.Collectors;
|
||||
)
|
||||
public class Employee extends DataEntity<Employee> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String empCode; // 员工编码
|
||||
private String empNo; // 员工工号
|
||||
|
||||
@@ -12,6 +12,8 @@ import com.jeesite.common.mybatis.annotation.Table;
|
||||
import com.jeesite.common.mybatis.mapper.query.QueryType;
|
||||
import jakarta.validation.constraints.Size;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 附属机构Entity
|
||||
* @author ThinkGem
|
||||
@@ -43,6 +45,7 @@ import jakarta.validation.constraints.Size;
|
||||
)
|
||||
public class EmployeeOffice extends DataEntity<EmployeeOffice> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String empCode; // 员工编码
|
||||
private String officeCode; // 机构编码
|
||||
|
||||
@@ -9,6 +9,8 @@ import com.jeesite.common.mybatis.annotation.Column;
|
||||
import com.jeesite.common.mybatis.annotation.JoinTable;
|
||||
import com.jeesite.common.mybatis.annotation.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 员工岗位Entity
|
||||
* @author ThinkGem
|
||||
@@ -34,6 +36,7 @@ import com.jeesite.common.mybatis.annotation.Table;
|
||||
)
|
||||
public class EmployeePost extends DataEntity<EmployeePost> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String empCode; // 员工编码
|
||||
private String postCode; // 岗位编码
|
||||
|
||||
@@ -18,6 +18,8 @@ import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Size;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
@@ -58,6 +60,7 @@ public class Log extends DataEntity<Log> {
|
||||
public static final String TYPE_SELECT = "select";
|
||||
public static final String TYPE_LOGIN_LOGOUT = "loginLogout";
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String logType; // 日志类型
|
||||
|
||||
@@ -22,6 +22,8 @@ import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Pattern;
|
||||
import jakarta.validation.constraints.Size;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 组织机构Entity
|
||||
* @author ThinkGem
|
||||
@@ -47,6 +49,7 @@ import jakarta.validation.constraints.Size;
|
||||
@Schema
|
||||
public class Office extends TreeEntity<Office> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String officeCode; // 机构编码
|
||||
private String viewCode; // 机构代码(作为显示用,多租户内唯一)
|
||||
|
||||
@@ -15,6 +15,8 @@ import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Pattern;
|
||||
import jakarta.validation.constraints.Size;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
@Table(name="${_prefix}sys_post", alias="a", label="岗位信息", columns={
|
||||
@Column(includeEntity=BaseEntity.class),
|
||||
@Column(includeEntity=DataEntity.class),
|
||||
@@ -27,6 +29,7 @@ import jakarta.validation.constraints.Size;
|
||||
)
|
||||
public class Post extends DataEntity<Post> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String postCode; // 岗位编码
|
||||
private String viewCode; // 岗位代码(作为显示用,多租户内唯一)
|
||||
|
||||
@@ -10,6 +10,8 @@ import com.jeesite.common.mybatis.annotation.JoinTable;
|
||||
import com.jeesite.common.mybatis.annotation.Table;
|
||||
import com.jeesite.common.mybatis.mapper.query.QueryType;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 岗位角色Entity
|
||||
* @author ThinkGem
|
||||
@@ -31,6 +33,7 @@ import com.jeesite.common.mybatis.mapper.query.QueryType;
|
||||
)
|
||||
public class PostRole extends DataEntity<PostRole> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String postCode; // 岗位编码
|
||||
private String roleCode; // 角色编码
|
||||
|
||||
Reference in New Issue
Block a user