package com.hotent.enterpriseDeclare.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.hotent.base.entity.BaseModel;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 成本调查表模板上传数据表
 *
 * @company 山西清众科技股份有限公司
 * @author 超级管理员
 * @since 2025-01-XX
 */
@ApiModel(value="CostSurveyTemplateUploadData对象", description="成本调查表模板上传数据表")
public class CostSurveyTemplateUploadData extends BaseModel<CostSurveyTemplateUploadData> {

    private static final long serialVersionUID = 1L;
    
    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonProperty("id")
    private String id;
    
    @ApiModelProperty(value = "关联ID")
    @TableField("ref_id")
    @JsonProperty("refId")
    private String refId;
    @TableField(exist = false)
    private String uploadId;
    
    @ApiModelProperty(value = "数据类型：1-成本调查表 2-财务数据表 3-成本核定")
    @TableField("type")
    @JsonProperty("type")
    private String type;
    
    @ApiModelProperty(value = "企业ID")
    @TableField("audited_unit_id")
    @JsonProperty("auditedUnitId")
    private String auditedUnitId;
    
    @ApiModelProperty(value = "行数据ID（标识同一行的数据）")
    @TableField("rowid")
    @JsonProperty("rowid")
    private String rowid;

    @ApiModelProperty(value = "行序号（该rowid在排序后是第几行）")
    @TableField("order_num")
    @JsonProperty("orderNum")
    private Integer orderNum;

    @ApiModelProperty(value = "数据key（动态字段名）")
    @TableField("rkey")
    @JsonProperty("rkey")
    private String rkey;
    
    @ApiModelProperty(value = "数据值（动态字段值）")
    @TableField("rvalue")
    @JsonProperty("rvalue")
    private String rvalue;
    
    @ApiModelProperty(value = "关联监审期间记录ID（动态表使用）")
    @TableField("period_record_id")
    @JsonProperty("periodRecordId")
    private String periodRecordId;

    private String parentId;
    
    @ApiModelProperty(value = "逻辑删除：0正常 1删除")
    @TableField("is_deleted")
    @JsonProperty("isDeleted")
    private String isDeleted;
    
    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    @JsonProperty("createTime")
    private LocalDateTime createTime;
    
    @ApiModelProperty(value = "创建人")
    @TableField("create_by")
    @JsonProperty("createBy")
    private String createBy;
    
    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    @JsonProperty("updateTime")
    private LocalDateTime updateTime;
    
    @ApiModelProperty(value = "更新人")
    @TableField("update_by")
    @JsonProperty("updateBy")
    private String updateBy;

    // 临时字段（用于创建主表，非数据库字段）
    @ApiModelProperty(value = "监管目录ID（创建主表时使用）")
    @TableField(exist = false)
    @JsonProperty("catalogId")
    private String catalogId;

    @ApiModelProperty(value = "成本调查表模板ID（创建主表时使用）")
    @TableField(exist = false)
    @JsonProperty("surveyTemplateId")
    private String surveyTemplateId;

    @ApiModelProperty(value = "子项目id")
    @TableField("task_id")
    @JsonProperty("taskId")
    private String taskId;

    public String getUploadId() {
        return uploadId;
    }

    public void setUploadId(String uploadId) {
        this.uploadId = uploadId;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRefId() {
        return refId;
    }

    public void setRefId(String refId) {
        this.refId = refId;
    }

    public String getAuditedUnitId() {
        return auditedUnitId;
    }

    public void setAuditedUnitId(String auditedUnitId) {
        this.auditedUnitId = auditedUnitId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRowid() {
        return rowid;
    }

    public void setRowid(String rowid) {
        this.rowid = rowid;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getRkey() {
        return rkey;
    }

    public void setRkey(String rkey) {
        this.rkey = rkey;
    }

    public String getRvalue() {
        return rvalue;
    }

    public void setRvalue(String rvalue) {
        this.rvalue = rvalue;
    }

    public String getPeriodRecordId() {
        return periodRecordId;
    }

    public void setPeriodRecordId(String periodRecordId) {
        this.periodRecordId = periodRecordId;
    }

    public String getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getCatalogId() {
        return catalogId;
    }

    public void setCatalogId(String catalogId) {
        this.catalogId = catalogId;
    }

    public String getSurveyTemplateId() {
        return surveyTemplateId;
    }

    public void setSurveyTemplateId(String surveyTemplateId) {
        this.surveyTemplateId = surveyTemplateId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CostSurveyTemplateUploadData{" +
            "id='" + id + '\'' +
            ", refId='" + refId + '\'' +
            ", type='" + type + '\'' +
            ", auditedUnitId='" + auditedUnitId + '\'' +
            ", rowid='" + rowid + '\'' +
            ", rkey='" + rkey + '\'' +
            ", rvalue='" + rvalue + '\'' +
            ", isDeleted='" + isDeleted + '\'' +
            ", createTime=" + createTime +
            ", createBy='" + createBy + '\'' +
            ", updateTime=" + updateTime +
            ", updateBy='" + updateBy + '\'' +
            '}';
    }
}

