| | |
| | | package com.vci.ubcs.starter.revision.model; |
| | | |
| | | import com.alibaba.fastjson.annotation.JSONField; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | public class BaseModel implements Serializable { |
| | | @JsonSerialize( |
| | | using = ToStringSerializer.class |
| | | ) |
| | | @ApiModelProperty("主键id") |
| | | @TableId(value = "OID",type = IdType.ASSIGN_UUID) |
| | | @TableId(value = "OID",type = IdType.ASSIGN_ID) |
| | | private String oid; |
| | | |
| | | @TableField(value = "ID") |
| | | @TableField(value = "id") |
| | | private String id; |
| | | |
| | | private String name; |
| | | |
| | | /** |
| | | * 租户ID |
| | | * @TableField(value = "tenant_id")这里必须要写,并且必须是要小写的 |
| | | */ |
| | | @TableField(value = "tenant_id") |
| | | private String tenantId; |
| | | |
| | | private String description; |
| | | |
| | |
| | | private String firstV; |
| | | |
| | | private String creator; |
| | | |
| | | @DateTimeFormat( |
| | | pattern = "yyyy-MM-dd HH:mm:ss" |
| | | ) |
| | |
| | | private Date createTime; |
| | | |
| | | private String lastModifier; |
| | | |
| | | @DateTimeFormat( |
| | | pattern = "yyyy-MM-dd HH:mm:ss" |
| | | ) |
| | |
| | | ) |
| | | private Date ts; |
| | | |
| | | /** |
| | | * 所有者 |
| | | */ |
| | | private String owner; |
| | | |
| | | private String copyFromVersion; |
| | | |
| | | // @VciUseEnum( |
| | | // value = "Enumsecretgrade", |
| | | // showTextField = "secretGradeText" |
| | | // ) |
| | | /** |
| | | * 需要使用密级的时候,需要继承这个属性 |
| | | */ |
| | | @TableField(exist = false) |
| | | private Integer secretGrade; |
| | | |
| | | @Transient |
| | | @TableField(exist = false) |
| | | private String secretGradeText; |
| | | |
| | | @Transient |
| | | @TableField(exist = false) |
| | | private Map<String, String> data; |
| | | private Map<String, String> data = new HashMap<>(); |
| | | |
| | | public BaseModel() { |
| | | } |
| | |
| | | this.lctid = lctid; |
| | | } |
| | | |
| | | /* public String getGroupcode() { |
| | | return this.groupcode; |
| | | public String getTenantId() { |
| | | return tenantId; |
| | | } |
| | | |
| | | public void setGroupcode(String groupcode) { |
| | | this.groupcode = groupcode; |
| | | }*/ |
| | | public void setTenantId(String tenantId) { |
| | | this.tenantId = tenantId; |
| | | } |
| | | |
| | | public Map<String, String> getData() { |
| | | return this.data; |
| | |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "BaseModel{oid='" + this.oid + '\'' + ", id='" + this.id + '\'' + ", name='" + this.name + '\'' + ", description='" + this.description + '\'' + ", revisionOid='" + this.revisionOid + '\'' + ", nameOid='" + this.nameOid + '\'' + ", btmname='" + this.btmname + '\'' + ", lastR='" + this.lastR + '\'' + ", firstR='" + this.firstR + '\'' + ", lastV='" + this.lastV + '\'' + ", firstV='" + this.firstV + '\'' + ", creator='" + this.creator + '\'' + ", createTime=" + this.createTime + ", lastModifier='" + this.lastModifier + '\'' + ", lastModifyTime=" + this.lastModifyTime + ", revisionRule='" + this.revisionRule + '\'' + ", revisionSeq=" + this.revisionSeq + ", revisionValue='" + this.revisionValue + '\'' + ", versionRule='" + this.versionRule + '\'' + ", versionSeq=" + this.versionSeq + ", versionValue='" + this.versionValue + '\'' + ", lctid='" + this.lctid + '\'' + ", lcStatus='" + this.lcStatus + '\'' + ", lcStatusText='" + this.lcStatusText + '\'' + ", ts=" + this.ts + ", owner='" + this.owner + '\'' + ", copyFromVersion='" + this.copyFromVersion + '\'' + ", secretGrade=" + this.secretGrade + ", secretGradeText='" + this.secretGradeText + '\'' + ", data=" + this.data + '}'; |
| | | return "BaseModel{oid='" + this.oid + '\'' + ", id='" + this.id + '\'' + ", name='" + this.name + '\'' + ", description='" + this.description + '\'' + ", revisionOid='" + this.revisionOid + '\'' + ", nameOid='" + this.nameOid + '\'' + ", btmname='" + this.btmname + '\'' + ", lastR='" + this.lastR + '\'' + ", firstR='" + this.firstR + '\'' + ", lastV='" + this.lastV + '\'' + ", firstV='" + this.firstV + '\'' + ", creator='" + this.creator + '\'' + ", createTime=" + this.createTime + ", lastModifier='" + this.lastModifier + '\'' + ", lastModifyTime=" + this.lastModifyTime + ", revisionRule='" + this.revisionRule + '\'' + ", revisionSeq=" + this.revisionSeq + ", revisionValue='" + this.revisionValue + '\'' + ", versionRule='" + this.versionRule + '\'' + ", versionSeq=" + this.versionSeq + ", versionValue='" + this.versionValue + '\'' + ", lctid='" + this.lctid + '\'' + ", lcStatus='" + this.lcStatus + '\'' + ", lcStatusText='" + this.lcStatusText + '\'' + ", ts=" + this.ts + ", owner='" + this.owner + '\'' + ", copyFromVersion='" + this.copyFromVersion + '\'' + ", secretGrade=" + this.secretGrade + ", secretGradeText='" + this.secretGradeText + '\'' + ", data=" + this.data + '}' + '\'' + ", tenantId=" + this.tenantId + '}'; |
| | | } |
| | | |
| | | } |