106 lines
2.3 KiB
Java
106 lines
2.3 KiB
Java
package com.kaidi.oa.domain;
|
|
|
|
import java.time.Instant;
|
|
|
|
import jakarta.persistence.Entity;
|
|
import jakarta.persistence.GeneratedValue;
|
|
import jakarta.persistence.GenerationType;
|
|
import jakarta.persistence.Id;
|
|
import jakarta.persistence.Column;
|
|
import jakarta.persistence.Table;
|
|
|
|
/**
|
|
* 制度历史版本(需求功能8「版本控制 / 修订历史 / 历史版本留存」)。
|
|
*
|
|
* 每次提交修订或发布时,把当时正文与版本号快照成一条不可改的历史记录。
|
|
* action:起草提交 / 部门审批 / 法务审批 / 高管审批 / 发布 / 废止;保留正文快照 contentSnapshot。
|
|
*/
|
|
@Entity
|
|
@Table(name = "ip_regulation_version")
|
|
public class IpRegulationVersion {
|
|
|
|
@Id
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
|
private Long id;
|
|
|
|
private Long regulationId;
|
|
|
|
private String version;
|
|
|
|
private String action;
|
|
|
|
@Column(columnDefinition = "TEXT")
|
|
private String contentSnapshot;
|
|
|
|
/** 修订说明 / 审批意见。 */
|
|
private String changeNote;
|
|
|
|
private String operator;
|
|
|
|
private Instant createdAt;
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public Long getRegulationId() {
|
|
return regulationId;
|
|
}
|
|
|
|
public void setRegulationId(Long regulationId) {
|
|
this.regulationId = regulationId;
|
|
}
|
|
|
|
public String getVersion() {
|
|
return version;
|
|
}
|
|
|
|
public void setVersion(String version) {
|
|
this.version = version;
|
|
}
|
|
|
|
public String getAction() {
|
|
return action;
|
|
}
|
|
|
|
public void setAction(String action) {
|
|
this.action = action;
|
|
}
|
|
|
|
public String getContentSnapshot() {
|
|
return contentSnapshot;
|
|
}
|
|
|
|
public void setContentSnapshot(String contentSnapshot) {
|
|
this.contentSnapshot = contentSnapshot;
|
|
}
|
|
|
|
public String getChangeNote() {
|
|
return changeNote;
|
|
}
|
|
|
|
public void setChangeNote(String changeNote) {
|
|
this.changeNote = changeNote;
|
|
}
|
|
|
|
public String getOperator() {
|
|
return operator;
|
|
}
|
|
|
|
public void setOperator(String operator) {
|
|
this.operator = operator;
|
|
}
|
|
|
|
public Instant getCreatedAt() {
|
|
return createdAt;
|
|
}
|
|
|
|
public void setCreatedAt(Instant createdAt) {
|
|
this.createdAt = createdAt;
|
|
}
|
|
}
|