10 小时以前 620bb4712a31791231c4381581f0f60088f079fe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
package com.ruoyi.collaborativeApproval.pojo;
 
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;
 
import java.io.Serializable;
import java.time.LocalDateTime;
 
/**
 * 企业新闻表
 *
 * @author 芯导软件(江苏)有限公司
 * @since 2026-05-20 11:50:59
 */
@Getter
@Setter
@ToString
@TableName("enterprise_news")
@ApiModel(value = "EnterpriseNews对象", description = "企业新闻表")
public class EnterpriseNews implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @Schema(description = "编号 ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    @Schema(description = "标题 Title")
    private String title;
 
    @Schema(description = "摘要 Summary")
    private String summary;
 
    @Schema(description = "正文 Content")
    private String content;
 
    @Schema(description = "分类 Category")
    private String category;
 
    @Schema(description = "阅读范围 Read scope: all 全员, dept 部门, custom 自定义")
    private String readScope;
 
    @Schema(description = "是否必读 Required flag: 0 否, 1 是")
    private Byte isRequired;
 
    @Schema(description = "状态 Status: DRAFT 草稿, PENDING 待审批, PUBLISHED 已发布, REJECTED 驳回, OFFLINE 已下线")
    private String status;
 
    @Schema(description = "应读人数 Required read count")
    private Integer requiredReadCount;
 
    @Schema(description = "已读人数 Read count")
    private Integer readCount;
 
    @Schema(description = "创建人 Create user")
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;
 
    @Schema(description = "创建时间 Create time")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    private LocalDateTime createTime;
 
    @Schema(description = "更新人 Update user")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;
 
    @Schema(description = "更新时间 Update time")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    private LocalDateTime updateTime;
 
    @Schema(description = "部门ID Dept ID")
    @TableField(fill = FieldFill.INSERT)
    private Long deptId;
}