添加 @Serial 序列化注解
This commit is contained in:
@@ -12,6 +12,7 @@ import org.slf4j.LoggerFactory;
|
||||
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.Serial;
|
||||
import java.util.TimeZone;
|
||||
|
||||
/**
|
||||
@@ -21,6 +22,7 @@ import java.util.TimeZone;
|
||||
*/
|
||||
public class XmlMapper extends com.fasterxml.jackson.dataformat.xml.XmlMapper{
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(XmlMapper.class);
|
||||
|
||||
@@ -4,12 +4,15 @@
|
||||
*/
|
||||
package com.jeesite.common.utils.excel;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* Excel Exception
|
||||
* @author ThinkGem
|
||||
*/
|
||||
public class ExcelException extends RuntimeException {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public ExcelException() {
|
||||
|
||||
@@ -12,6 +12,7 @@ import com.jeesite.common.mybatis.mapper.query.QueryType;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Size;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
@@ -36,6 +37,7 @@ import java.util.Date;
|
||||
)
|
||||
public class AppComment extends DataEntity<AppComment> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String category; // 问题分类
|
||||
private String content; // 问题和意见
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
package com.jeesite.modules.app.entity;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.Date;
|
||||
|
||||
import jakarta.validation.constraints.Size;
|
||||
@@ -34,6 +35,7 @@ import com.jeesite.common.mybatis.mapper.query.QueryType;
|
||||
)
|
||||
public class AppUpgrade extends DataEntity<AppUpgrade> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String appCode; // 应用编号
|
||||
private String upTitle; // 升级标题
|
||||
|
||||
@@ -16,6 +16,8 @@ import com.jeesite.modules.cms.utils.CmsUtils;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
import jakarta.validation.constraints.Size;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
@@ -66,6 +68,7 @@ import java.util.Date;
|
||||
public class Article extends DataEntity<Article> {
|
||||
|
||||
public static final String DEFAULT_TEMPLATE = "viewArticle"; // 默认文章内容模板
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Category category; // 栏目编码
|
||||
|
||||
@@ -11,6 +11,8 @@ import com.jeesite.common.entity.Extend;
|
||||
import com.jeesite.common.mybatis.annotation.Column;
|
||||
import com.jeesite.common.mybatis.annotation.Table;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
/**
|
||||
* 文章详情表Entity
|
||||
* @author 长春叭哥、ThinkGem
|
||||
@@ -26,6 +28,7 @@ import com.jeesite.common.mybatis.annotation.Table;
|
||||
)
|
||||
public class ArticleData extends DataEntity<ArticleData> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String content; // 文章内容
|
||||
private String relation; // 相关文章
|
||||
|
||||
@@ -8,6 +8,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
|
||||
@@ -20,6 +22,7 @@ import com.jeesite.common.mybatis.annotation.Table;
|
||||
)
|
||||
public class ArticlePosid extends DataEntity<ArticlePosid> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String articleId; // 内容编号
|
||||
private String postid; // 推荐位置(1轮播图 2首页推荐 3栏目页面)
|
||||
|
||||
@@ -8,6 +8,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
|
||||
@@ -20,6 +22,7 @@ import com.jeesite.common.mybatis.annotation.Table;
|
||||
)
|
||||
public class ArticleTag extends DataEntity<ArticleTag> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String articleId; // 内容编号
|
||||
private String tagName; // 标签名称
|
||||
|
||||
@@ -16,6 +16,8 @@ import com.jeesite.modules.cms.utils.CmsUtils;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Size;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -59,6 +61,7 @@ public class Category extends TreeEntity<Category> {
|
||||
public static final String SHOW_MODES_CENTENT_LIST = "2"; // 首栏目内容列表
|
||||
public static final String SHOW_MODES_FIRST_CONTENT = "3"; // 简介类栏目,栏目第一条内容
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String categoryCode; // 栏目编码
|
||||
private String categoryName; // 栏目名称
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
package com.jeesite.modules.cms.entity;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.Date;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
@@ -43,6 +44,7 @@ import com.jeesite.common.mybatis.mapper.query.QueryType;
|
||||
)
|
||||
public class Comment extends DataEntity<Comment> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private Category category;// 分类编号
|
||||
|
||||
@@ -6,6 +6,7 @@ package com.jeesite.modules.cms.entity;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.io.Serial;
|
||||
import java.io.Serializable;
|
||||
import java.util.Objects;
|
||||
|
||||
@@ -23,6 +24,7 @@ import com.jeesite.common.lang.ExceptionUtils;
|
||||
*/
|
||||
public class FileTemplete implements Comparable<FileTemplete>, Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private Resource resource;
|
||||
private String fileName;
|
||||
|
||||
@@ -10,6 +10,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
|
||||
@@ -26,6 +28,7 @@ import com.jeesite.common.mybatis.annotation.Table;
|
||||
)
|
||||
public class Report extends DataEntity<Report> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String reportSource; // 举报来源(1文章、2评论)
|
||||
private String reportContent; // 举报内容(文章标题 评论内容)
|
||||
|
||||
@@ -16,6 +16,8 @@ import com.jeesite.modules.sys.utils.UserUtils;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Size;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -53,6 +55,7 @@ public class Site extends DataEntity<Site> {
|
||||
*/
|
||||
public static final String DEFAULT_TEMPLATE = "index";
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String siteCode; // 站点编码
|
||||
private String siteName; // 站点名称
|
||||
|
||||
@@ -10,6 +10,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
|
||||
@@ -22,6 +24,7 @@ import com.jeesite.common.mybatis.annotation.Table;
|
||||
)
|
||||
public class Tag extends DataEntity<Tag> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String tagName; // 标签名称
|
||||
private Integer clicknum; // 点击次数
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
*/
|
||||
package com.jeesite.modules.cms.entity;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.util.Date;
|
||||
|
||||
import jakarta.validation.constraints.Size;
|
||||
@@ -57,6 +58,7 @@ import com.jeesite.common.mybatis.mapper.query.QueryType;
|
||||
)
|
||||
public class VisitLog extends DataEntity<VisitLog> {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private String requestUrl; // 请求的URL地址
|
||||
private String requestUrlHost; // 受访域名
|
||||
|
||||
@@ -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