得帆云考试依赖得帆云考试依赖
立即下载
资源介绍:
得帆云考试依赖得帆云考试依赖
package com.xdap.juniorcerttaowei.common.pojo;
import com.definesys.mpaas.query.annotation.Column;
import com.definesys.mpaas.query.annotation.SystemColumn;
import com.definesys.mpaas.query.annotation.SystemColumnType;
import com.definesys.mpaas.query.json.MpaasDateTimeDeserializer;
import com.definesys.mpaas.query.json.MpaasDateTimeSerializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.xdap.motor.entity.SnowflakeIdWorker;
import lombok.Data;
import java.util.Date;
/**
* @BelongsProject: com.xdap.qdmp.common.pojo
* @Author: liuyang
* @CreateTime: 2022/9/15 15:04
* @Description:公共字段
* @Version: 1.0
*/
@Data
public class TestSystemCommon {
private String id;
@Column("document_id")
private String documentId;
@Column("tab_doc_id")
private String tabDocId;
private String status;
@Column("tenant_id")
private String tenantId;
@Column("form_id")
private String formId;
@Column("process_id")
private String processId;
@Column("approver_id")
private String approverId;
@Column("owner")
@SystemColumn(SystemColumnType.OWNER)
String owner;
@SystemColumn(SystemColumnType.CREATE_BY)
@Column("created_by")
String createdBy;
@SystemColumn(SystemColumnType.LASTUPDATE_BY)
@Column("last_updated_by")
String lastUpdatedBy;
@JsonDeserialize(
using = MpaasDateTimeDeserializer.class
)
@JsonSerialize(
using = MpaasDateTimeSerializer.class
)
@Column("creation_date")
@SystemColumn(SystemColumnType.CREATE_ON)
Date creationDate;
@JsonDeserialize(
using = MpaasDateTimeDeserializer.class
)
@JsonSerialize(
using = MpaasDateTimeSerializer.class
)
@Column("last_update_date")
@SystemColumn(SystemColumnType.LASTUPDATE_ON)
Date lastUpdateDate;
@Column(value = "object_version_number")
@SystemColumn(SystemColumnType.OBJECT_VERSION)
Integer objectVersionNumber;
public void setBaseField(String owner, String formId, SnowflakeIdWorker snowflakeIdWorker, String tenantId) {
this.setId(snowflakeIdWorker.nextId());
this.setOwner(owner);
this.setCreatedBy(owner);
this.setLastUpdatedBy(owner);
this.setCreationDate(new Date());
this.setLastUpdatedBy(owner);
this.setLastUpdateDate(new Date());
this.setFormId(formId);
//部分固定字段
if (this.documentId == null){
//随机生成documentId
this.setDocumentId(snowflakeIdWorker.nextId());
}
this.setStatus("COMPLETED");
this.setTenantId(tenantId);
//this.setProcessId("379368744320634882");
this.setObjectVersionNumber(1);
}
public void setBaseField( String formId, SnowflakeIdWorker snowflakeIdWorker, String tenantId) {
this.setId(snowflakeIdWorker.nextId());
this.setCreationDate(new Date());
this.setLastUpdateDate(new Date());
this.setFormId(formId);
//部分固定字段
if (this.documentId == null){
//随机生成documentId
this.setDocumentId(snowflakeIdWorker.nextId());
}
this.setStatus("COMPLETED");
this.setTenantId(tenantId);
//this.setProcessId("379368744320634882");
this.setObjectVersionNumber(1);
}
}
资源文件列表:
junior-cert-tao-wei.zip 大约有423个文件